Forum Moderators: coopster
The section that requires fixing:
onClick="wopen("./includes/showfile.php?image_id='.$array['upload_id'].'"
showfile.php echos a mySQL BLOB image based on an upload_id passed to it from a mySQL DB:
echo $array['image'];
I'm looking for any kind of solution to this problem.
I'm trying to call up an image using showfile.php from a mySQL DB based on an upload_id, into a javascript function that will make it popup in its own window.
You need to send the appropriate image headers out first, then the image blob. How to convert image blob files back to image [webmasterworld.com]