Hello,

I have some corrupted file problem with Struts, in upload and in download.

1- Upload :  I use the FormFile object and the <html:file> tag to import
file from the client browser. Things works just fine with almost every files
but I have hit some files ( like tiff and pdf) that get corrupted after the
upload. The files are the same size but the checksum is different (tiff
reader and Adobe can not read the files after upload). Why I say it is
struts and not Tomcat : I did a test in the same Struts Action but using a
packages form Oreilly to parse multipart request. The file gets uploaded
correctly using Oreilly stuff. Any comments will be welcome.


2- Dowload : I have a Struts Action that send files to the client browser.
Avery thing works just fine but “once in a while” the client will get a
corrupted PDF. We know the problem is not with the pdf but during the
transfer of the file. It could be Struts, Tomcat or Adobe (I know the
Acrobat Reader ActiveX is in charge of downloading the PDF on the client
side). Can Struts be the problem ?

Any discussion will be welcome.

My System:
- Win NT
- Tomcat 3.2
- Struts 1.0
- JDK 1.2

Thank you.
Hugo

Reply via email to