Try this:
* Using the Orielly lib, create your multi object, but use a temporary file storage location in the constructor.
* Once the file is saved to your temporary location, get the "File" instance.
* Save the file to your DB, or a permanent storage location (good practice would be to store the file location in the db, but the binary in a directory)
* Clean up the temp file.
Hope that helps,
Joel Kozlow
===============================
Joel Kozlow
ESG Consultant at Hewlett Packard
Supplier Solutions Group
Mayfield Site, U.S.
[EMAIL PROTECTED]
===============================
> -----Original Message-----
> From: Jose Euclides da Silva Junior - DIGR.O
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 13, 2000 9:53 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RES: can jsp handle multipart/form-data ?
>
>
>
> > Thanks a lot, Philippe! But, my doubt is how to persist the
> uploaded file,
> > since i should store it into my database, as an image
> field. Oreilly
> > component just returns me a file object of its method. This
> is another
> > problem! What should i do? Any hint?
> > Best Regards,
> >
> > Jos� Euclides J�nior
> > __________________________________
> > E-mail: [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > http://euclides.8m.com
> >
> >
> > -----Mensagem original-----
> > De: Philippe de M. Sevestre [SMTP:[EMAIL PROTECTED]]
> > Enviada em: Ter�a-feira, 12 de Dezembro de 2000 19:55
> > Para: [EMAIL PROTECTED]
> > Assunto: Re: RES: can jsp handle multipart/form-data ?
> >
> > We've used the JspSmartUpload component with Tomcat. Check
> the following
> > link for
> > more info:
> >
> >
http://industry.java.sun.com/solutions/products/by_product/0,2348,all-2631
> -2
> 6,00.html
>
>
> At 15:05 12/12/00 -0300, you wrote:
> >Hi everybody and Joe!
> >I am trying to use the oreilly's package for multipart/form-data streams.
> >But I didnt find any
> >method to deal with input text field which comes ( mixed ) with the
> uploaded
> >file from my form. Any hint?
> >Best Regards,
> >
> > Jos� Euclides J�nior
