Hi
To get the blob from the datbase us 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 type
and then display it.

Ritesh rawat



--- jiangping <[EMAIL PROTECTED]> wrote:
> I use Informix as my database server.
> I want to develop a web client that can retrieve and
> update my database by
> jsp.
>
> The problem is that I want to use BLOB field in
> database,
> and how can I code in .jsp files?
> If someone can give me the sample code,i would
> appreciate it very much!
>
>
>
>    Ping John
>
>
===========================================================================
> 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

Reply via email to