Please how do I echo pictures from database using php in terms of HEADER (CONTENT -TYPE : IMAGE/JPEG).... I keep getting errors | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please how do I echo pictures from database using php in terms of HEADER (CONTENT -TYPE : IMAGE/JPEG).... I keep getting errors

I have the image stored as a blob in my database... but when I try to echo it out without the header,.... I get all sorts of binary rubbish but when I include the HEADER, it tells me image can't be displayed because it contains errors............ please I'd be grateful for your assistance THANKS!

1st Jun 2017, 7:11 AM
moses
moses - avatar
1 Answer
1st Jun 2017, 7:49 AM
Calviղ
Calviղ - avatar