I read all possible questions on StackOverflow, I asked all people who I know and no one can help me. I have table in database:
CREATE TABLE IF NOT EXISTS `z
Using phpMyAdmin, I had to change the MIME display type to .jpeg on my MySQL image column = avatar_image. Once I made this simple change, it displays in the browser...i.e. the browser was getting the .jpeg data as a BLOB in raw form and did not know what to do with it...but it was a MySQL configuration = MIME type change on the MySQL column that fixed it.
Try below
echo '<img src="data:image/png;base64,'.base64_encode( $row['zdjecie'] ).'"/>';
For better maintenance you can add data:image/png;base64
as your header then only echo base64_encode( $row['zdjecie'] )
this will work for single_image.php?id=$id