Help displaying an image stoed in a MySQL database

From: Date: Fri, 07 Dec 2001 00:11:03 +0000
Subject: Help displaying an image stoed in a MySQL database
Groups: php.dev 
Request: Send a blank email to php-dev+get-72807@lists.php.net to get a copy of this message
I would like to store an image in a database and then allow users to select the image for display... I can upload the file, and write it to the database. I base64_encode ' d it and dropped it in a longblob field. I then query the database, pull the encoded image out... now what... I have tried simply saying <img src=$encoded_var> and that doesn't work worth squat... So basically, I have: HTML HTML HTML HTML HTML Image to display here HTML HTML HTML How do I get the image to pull from the database and display there in the middle of all the HTML? -Chris

« previous php.dev (#72807) next »