I stored it images in the database using an BLOB field (I’m using SQLite). Now I want to recover this image to a HTML page and show the images there.
I can retrieve the binary data from the image from the database, but what I can do to transform this data in an image and show in the page? Currently I want to show the images inside a field in a table.
You could abuse the
data:protocol, but trust me, you don’t want that if you can avoid it. Normally, you create a separate php-script that serves images, so in script 1:In myimagescript.php: