Moron Posted November 16, 2006 Share Posted November 16, 2006 Anyone have a quick and dirty way to display images that are stored in binary format in the database?Thanks! Link to comment https://forums.phpfreaks.com/topic/27500-display-images-stored-in-binary/ Share on other sites More sharing options...
michaellunsford Posted November 16, 2006 Share Posted November 16, 2006 [code=php:0]$myrow=mysql_fetch_assoc(mysql_query("SELECT * FROM `table` LIMIT 1"));$im=imagecreatefromstring($myrow['image']);header("Content-type: image/jpeg");imagejpeg($im);[/code] Link to comment https://forums.phpfreaks.com/topic/27500-display-images-stored-in-binary/#findComment-125763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.