Can you send me a example source code. The method writeTo() writes the bytes
in
a OutputStream and I can't find a way to save the bytes from a OutputStream
to a database.
There is no methods in the ResultSet or PreparedStatment class to set an
OutputStream and execute the update.

Thanks


----- Original Message -----
From: "Jason Hunter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 8:34 PM
Subject: Re: Upload File to a database


> Mauricio Cadima wrote:
> >
> > Hi
> >
> > I am trying to upload files and save them  as binary   data  directly
into
> > the database whitout
> > uploading the file and write into a file server and then reading
> > from it with a FileInputStream and then save it into the DB. Is there
any
> > way to do this?
> >
> > I'm using the MultiPartParser class from O'Reilly to upload the file.
>
> The MultipartParser class has a writeTo() method on FilePart.  Should be
> able to stream it into a db.  I know many others have been successful in
> doing this.
>
> -jh-
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to