Hi, we use the <html:file to upload also large attachments into a web-mail application. First we put it into the database, but immediately thereafter, we would like to send it off to multiple recipients via encrypted mail.
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 the (MySQL) database again, reset() works beautifully and we can read it many times. But going back and forth to the database is a big waste if the InputStreams get large. Therefore my request to enhance the documentation in 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 ByteArrayInputStream thus having a reset() implemented. However, as we tried to convert data coming from struts FormFile to ByteArrayInputStream ourselves, it got corrupted. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

