Writing HTML to a browser from a DB

Has anyone wrote html that was stored in an oracle db to a browser? I gotsome images that are stored as well and I wanted to try and have themdisplayed in the browser as well. The html makes references to the images.

Share:

1 Answer Found

A simple servlet can take care of display the image by setting it's contenttype to image/jpeg (let's say) and in the html the image src attribute wouldlook like this: ghooriboori.com/servlets/ImageServlet?id=1243. Theservlet simply can read the bytes from the db.