Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Writing HTML to a browser from a DB

  Asked By: Rabiah    Date: Sep 03    Category: Java    Views: 831
  

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

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Robin Hayes     Answered On: Sep 03

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.

 
Didn't find what you were looking for? Find more on Writing HTML to a browser from a DB Or get search suggestion and latest updates.




Tagged: