After more testing I discovered that it is the UPLOAD that is broke.
It only uploads 31808 bytes out of my large files. 

On upload I insert the size of the file into a column.  I get this
from the File.length() of the File returned by
com.oreilly.servlet.MultipartRequest.getFile(String).  For my
example file this value is set correctly as 211134.  However, 
when I check the actual size of the content uploaded (via Oracle's
DBMS_LOB.GET_LENGTH function) it says only 31808!

Now again, these big files work fine under Tomcat 3.2.

Anyone experiencing this??


-----Original Message-----
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 1:57 PM
To: Tomcat User's Group
Subject: Servlet Download of large files broke Tomcat4.0.1


Hi,

I've got a servlet for uploading and downloading 
files using com.oreilly.servlet package.  It worked 
fine under Tomcat 3.2 for large files (> 2MB). 
Under Tomcat 4.0.1, with everything else the same, 
it won't download large files.  

For example, downloading a 3MB PDF file via 
Netscape spawns Acrobat which says: 

"There was an error opening this document.  Could not repair file."

They seem to be uploaded OK.  They go into an 
Oracle database table which reveals the file size.
The file size for these docs are the same as those
in the working Tomcat 3.2 case.

The logs don't indicate anything exceptional.

Did something change in Tomcat 4 wrt. downloading
large files?

Environment:
Tomcat 4.0.1
Red Hat Linux 6.2
Sun JDK 1.3.1 (using classic JVM)


[EMAIL PROTECTED] 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to