Hi SantosH

My interest is just the upoload part. Just the sintax for reading the
InputStream and the downloading

Thanks in advance

sio

-----Original Message-----
From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 7:56 AM
To: [EMAIL PROTECTED]
Subject: Re: File Upload


You can do a HTTP post from your JSP to a servlet. Code your JSP page to
have a
form that has an input type ="file" ,
this will allow you to select any file from the client . Post this form to a
servlet.
      The servlet reads the InputStream and downloads the stream to the
server.
Once you have the file on the server,
you can use a BLOB variable to insert in into the database . Most of the
RDBMS
have a BLOB data type.
   You can write the servlet for downloading the bitmap , or use a existing
package provided by O'Reilly. Visit servlets.com or oreilly web site. The
example is explained in Jason Hunters, Servlet programming book.


Santosh









"Richie Bab A. Boyboy" <[EMAIL PROTECTED]> on 07/08/2001 11:12:55 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  File Upload



People,

Do you have any idea on how to upload a file?
For example,from my JSP page I want to upload a bitmap file and save it
in the database.

Richie

===========================================================================
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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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