Re: how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Vikram Goyal
nahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 03, 2003 3:11 PM Subject: Re: how to read uploaded FormFile InputStream multiple times? > Ralf Hauser wrote: > > >Hi, > > > >we use the >applica

Re: how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Craig R. McClanahan
Ralf Hauser wrote: Hi, we use the We get a "Bad File Descriptor" when trying to access the data for a second time after putting it into the database. doing a inputStream.reset() gives a "java.io.IOException: mark/reset not supported". If we wipe the attachment from the session and get it from th

how to read uploaded FormFile InputStream multiple times?

2003-10-02 Thread Ralf Hauser
Hi, we use the http://jakarta.apache.org/struts/api/org/apache/struts/upload/FormFile.html# getInputStream(): how can one use such an InputStream multiple times? Many thanks for any hints! Ralf ([EMAIL PROTECTED]) P.S.: We figured that Blobs coming from MySQL are actually ByteArrayInput