jordan4501 Posted February 27, 2011 Share Posted February 27, 2011 So I have a database with BLOBs (jpeg images). I also have a handy PHP page to display the image given an image ID. This page works fine, by getting the data, setting the content-type header to "image/jpeg", and echoing the data. Now here's the rub: I need the page to also display other information, in text / html format (i.e. show image, and below it show time the image was taken and other information also stored in the database. Because the content-type header has been set as "image/jpeg", I can't display this additional content. How can I make this work? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/229069-php-blob-page-but-with-text/ Share on other sites More sharing options...
requinix Posted February 27, 2011 Share Posted February 27, 2011 You cannot show an image and text at the same time. It's one or the other. If you need text, put it someplace else. Like on whatever page has the s that are referencing the image script. Quote Link to comment https://forums.phpfreaks.com/topic/229069-php-blob-page-but-with-text/#findComment-1180552 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.