try this

http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html?page=2
----- Original Message -----
From: "Hunor Nam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 8:26 AM
Subject: Re: File upload


> Hi i dont know where to look for tut. (I looked in Java Server Pages
> from scratch) but I'll try explaneing it to you
> 1) you must declair your HTML form as:
> <form action="a_target" method=post enctype="multipart/form-data">
> 2)<input type="file" name="a_name">
>
> 3) in the servlet somthin' like:
>
> public String getNextLine() throws Exception
> {
>         int actual;
>
>         StringBuffer strBuff = new StringBuffer();
>         sis.readLine (buffer,0,1000);
>         if (actual > 0)
>         {
>                 for ( int i = 0; i < actual; i++ )
>                 {
>                         char c = ( char ) buffer[i];
>                         strBuff.append( c );
>                 }
>                 return strBuff.toString();
>         }
>
>         return null;
> }
>
>
> where :
> sis = ServletInputStream
> buffer = byte[]
>
>         I hope you'll find this usefull
>                 Hades.
>
> -----Original Message-----
> From: Erwin Kodiat [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 01, 2001 9:24 AM
> To: [EMAIL PROTECTED]
> Subject: File upload
>
>
> Do you guys know where can I get a tutorial about uploading file with
> JSP
> and stored in BLOB data type in Oracle database? Thanks in advance.
>
> Erwin Kodiat
> Mitrais Software Development Center
> Bali, Indonesia
>
> ========================================================================
> ===
> 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