Show image stored in a database
Hello!Supose that you have a image in a BLOB in a database, do not ask me why you ever would have it like that. Just supose that.
Then supose that you should show that image in a HTML-document, like:
<HTML>
<HEAD>
</HEAD>
<BODY>
<H3>The image</H3>
<IMAGE????>
</BODY>
</HTML>
Is there a smarter way then this psudeocode:
1)Retrive the image from the database
2)Store it like a file
3)Create the HTML-output with <IMAGE SRC="images/theimg.gif">
4) Return the the HTML-output to the client.
Is there a smarter way then this approach when you have the image in the database like a BLOB? Is it possible to do it differently with some other technich?
Best regrads
Fredrik
