Hi
To get the blob from the datbase use following:
java.io.InputStream in =
results.getBinaryStream("doc_blob_column");
Now use the ByteArrayStream to read the blob in byte
array. Get the length of the blob.Set the content
typeand then display it.
Ritesh rawat
--- sun_king <[EMAIL PROTECTED]> wrote:
> you first have convert the BLOB to a jpg or gif for
> browsers to handle. how well
> that's done depends on the complications of the
> image itself.
> check out Jason Hunter's http://www.servlets.com/
> particularly
> http://www.servlets.com/jsp/examples/ch06/index.html
> and
>
http://www.servlets.com/jsp/examples/ch06/index.html#ex06_03
> look over the code, get the libraries (forgot who
> wrote them right now)
> and you'll see what i mean
>
> ejf
>
> Lehner Steven wrote:
>
> > Hi,
> >
> > Is it possible to retrieve an image, stored as a
> BLOB in an Oracle 8i database,
> > directly to a web page using JSP and without
> having to first save as a temporary
> > file? Has anyone managed to get this working and
> could maybe give me some
> > pointers? A code snippet would be fantastic.
> >
> > Many thanks,
> >
> > Steve
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets