Help displaying an image stored in a database...

From: Date: Thu, 06 Dec 2001 23:35:07 +0000
Subject: Help displaying an image stored in a database...
Groups: php.general 
Request: Send a blank email to php-general+get-76967@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 iamge to pull from teh database and display there in the middle of all the HTML? -Chris

« previous php.general (#76967) next »