Re: Beginners: File uploads and rendering images to the database
Thanks for the idea jnylund. I implemented it, however, I'm getting the same result. The page displays as expected, however, the picture is replaced with the "alt" empty box for the jpeg.
I have checked the actual db using the mySQLQueryBrowser from the mySQL people. The picture renders properly using that tool and everything else in the database looks just fine. And yes, the "id" sent is correct, so I'm looking at the right record.
I've attached the output from my latest debug run. Anyone have any ideas?
Thanks for the help!
Processing PicturesController#code_picture (for 127.0.0.1 at 2007-11-15 18:35:12) [GET]
Session ID: 1e42e86cde6b2e507e4bb83c838bf8c2
Parameters: {"action"=>"code_picture", "id"=>"3", "controller"=>"pictures"}
"=>"pictures"}
Picture Columns (0.000000) SHOW FIELDS FROM pictures
Picture Load (0.000000) SELECT * FROM pictures WHERE (pictures.`id` = 3)
Sending data small.jpg
Completed in 12.01600 (0 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.00000 (0%) | 200 OK [http://localhost/pictures/code_picture?id=3]