tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Jacobsen" <jerome.jacob...@gentootech.com>
Subject RE: Servlet Download of large files broke Tomcat4.0.1
Date Mon, 03 Dec 2001 15:57:30 GMT
Sorry!  This was a bug in MY code, not Tomcat's!  There was a
change after all in my code between the version that works
and the one that doesn't.  It's fixed and working fine.

No problem with Tomcat.  No problem with com.oreilly.servlet
package.


-----Original Message-----
From: Jerome Jacobsen [mailto:jerome.jacobsen@gentootech.com]
Sent: Friday, November 30, 2001 2:58 PM
To: Tomcat Users List; jerome.jacobsen@gentootech.com
Subject: RE: Servlet Download of large files broke Tomcat4.0.1


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:jerome.jacobsen@gentootech.com]
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)

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message