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