I have successfully placed images (jpg,gif,png) into a MySQL database
BLOB field, now I want to be able to pull the data out and diplay it.

based on tutorial at

after Querying the DB I have the following lines:

$ImgFile = mysql_result($Results,0,ImgFile); \\ image data;
$ImgType = mysql_result($Results,0,ImgType);  \\ image type (image/jpeg,
header("Content-type: ${ImgType}");
echo "$ImgFile";

Problem: This method, when it pulls up an image, it shows no image but a
bunch of greek code.  Example
((be sure to view page source)

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to