amalosoul Posted July 12, 2008 Share Posted July 12, 2008 I am trying to display a binary image without using the header() function offered by php. Does anyone know if one can display an image stored as blob (after storing it in a variabile, of course) using html ? Thank you in anticipation! Link to comment https://forums.phpfreaks.com/topic/114433-display-binary-images/ Share on other sites More sharing options...
spiceydog Posted July 16, 2008 Share Posted July 16, 2008 Have you tried rebooting your computer? Link to comment https://forums.phpfreaks.com/topic/114433-display-binary-images/#findComment-591478 Share on other sites More sharing options...
Daniel0 Posted July 16, 2008 Share Posted July 16, 2008 Does anyone know if one can display an image stored as blob (after storing it in a variabile, of course) using html ? No, that''s not possible. Link to comment https://forums.phpfreaks.com/topic/114433-display-binary-images/#findComment-591601 Share on other sites More sharing options...
amalosoul Posted July 17, 2008 Author Share Posted July 17, 2008 Well this is half not true ... I don't understand why IE doesn't display this: $string = "\"data: image/jpg;base64,".$array[1]."\""; and then I use this string as src for my image. Firefox displays it but IE does not... P.S. that $array[1] is my encoded blob Link to comment https://forums.phpfreaks.com/topic/114433-display-binary-images/#findComment-592697 Share on other sites More sharing options...
Daniel0 Posted July 17, 2008 Share Posted July 17, 2008 You are still using PHP to generate it - not HTML. Besides, you shouldn't do that seeing as it would be impossible to cache it. Link to comment https://forums.phpfreaks.com/topic/114433-display-binary-images/#findComment-592707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.