I’m frustrated

Binary image not being displayed

Ch 9 ~pg 293 binary images from database are not displayed.
header("Content-type: " . $image['mime_type']);
header("Content-length: " . $image['file_size']); are verified as set properly.
Depending on the browser, using echo $image['image_data']; in the program /show_image.php?image_id= 41 will either fill the screen with a binary dump or firefox will give me "the feedback "http://localhost/BE_Tracker/prod/show..." cannot be displayed because it contains errors. I have gone back and echoed everything to verify all the data was correct then of course stripped the echos out again.
Can you give me any pointers?
1 person has
this question
+1
Reply