i found out what the problem was..the problem that happens is that if a file has a line more than 4096 then you can see a character missing and instead of it you will find a newline char..happens with every file, not only PDF....maybe this problem is not in later version of struts but sure is in 1.0 final release...the problem is with upload.MultipartIterator.createLocalFile() and also in BufferedMultipartInputStream.readLine()...wont bore you with details, but a cheap fix would be to do MultipartIterator.MAX_READ_SIZE to something more than 4092.
-----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, May 21, 2005 7:15 PM To: Struts Users Mailing List Subject: Re: file upload struts - pdf corrupted On 20/05/05 10:33 Nandan wrote: > Hello, > I am using struts 1.0.2 to upload files. However sometimes a PDF file gets corrupted after a file upload. I see that random characters are replaced a hex 0A. Is this is a known bug? Please let me know > GP Try checking bugzilla for commons-fileupload, or ask on the jakarta-commons user list. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]