My website stores pictures in a TEXT mysql field and displays them like:
extract of database:
data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QBGRXhpZgAASUkqAAgAAAABADEBAgAjAAAAGgAAAAAAAABieS5ibG9vZGR5LmNyeXB0by...
and they are displayed that way
<img id="image" style="width:160px;" src="<?=$row["data"];?>">
I would like some images to be accessible directly like in browser: http://www.mysite.com/myPicture.php?id=1 (id=field 1 of database)
(with no html, just pure JPEG image)
so it returns a pure JPEG image (I guess some headers to be stup as JPEG).
Any clue for that ?