I am trying to display images stored in a BLOB field. The images display fine on my development server but will not display on my production server. There are no errors just an empty image. Is there some module that my PHP or Apache compilation is missing?
code
<?php
include "db.inc";
db_connect();
$sql = "select blobimage from imagepool where id = '2'";
$rsl = mysql_query($sql);
$rs = mysql_fetch_array($rsl);
Header("Content-type: image/gif");
echo "$rs[blobimage]";
?>
If I remove the 'header' line the the binary data is displayed so I know that everything is pulling properly from the db.
Any help appreciated ---