Hi Dwi, I think it is much better if you wrote you code in servlet, it's more reusable than to wrote it in jsp. If you have your servlet then you can call it from your jsp, for instance you can do it like this:
<img src="http://www.myhost.com/ImageViewServlet?imgid=pic001"></img> if you still want to repeating your code on jsp, you can do it the same way. get you blob and write it as a byte stream. regards, wayan -----Original Message----- From: Dwi Nugroho [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 9:00 AM To: [EMAIL PROTECTED] Subject: Re: display image from table yeah .. I already have a imange stored at table and I got some advice to display it using servlet but that i wanna do is display it using jsp. but i don't know how .. thx dwi nugroho > -----Original Message----- > From: I Wayan Saryada [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 7:16 PM > To: [EMAIL PROTECTED] > Subject: Re: display image from table > > Hi, > > You can create a servlet that read your image > BLOB from database, the write it to the HttpServeltResponse > output stream. Before writing it to the output stream be > sure to set the content type to the type of image that > you store on the database ("image/gif"), etc. > > regards, > wayan > > > -----Original Message----- > From: Dwi Nugroho [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 10:52 AM > To: [EMAIL PROTECTED] > Subject: display image from table > > > Hello .. > How to display image stored at BLOB table as a thumbnail please ... > > dwi nugroho > www.unocal.com > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > > ========================================================================== > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
