Hi Guys,
I am new to headers... I uploaded my images fine using a file input tag. File looks to have saved good in mysql as blob type.
However, when I read it back I display binary and I am not sure whats the deal with headers.
I use 1 file to post and handle the form. I have tried used ob_start and ob_flush...
here is my code that I try to reconstruct the binary file:
$row = mysql_fetch_array($result);
$img = $row['imgfavpic'];
mysql_close($con);
$handle = imagecreatefromstring($img);
header('Content-Type: image/gif');
imagegif($handle); //not sure if i needed this
//output binary data -- by the way not sure if i need to use base64...
//brwser used is ie7 -- ob_start and ob_flush used
Thanks