The server is using the 64 bit VM but the client is not. I guess I
don't know why you would need the 64 bit VM because you aren't loading
the entire file into memory. Also, make sure you are using the
streaming API in 1.2 (otherwise you will be keeping it all in memory).
The problem you have is if you are trying to keep progress. You can't
keep progress in an int cause it will over flow.
Andrew
Mark Webb wrote:
are you using a 64 bit JVM in order to get the 10GB file?
On 6/5/07, Andrew <[EMAIL PROTECTED]> wrote:
That doesn't stop you from uploading a file larger than 2GB though. You
must use fileupload 1.2. 1.1 relies on the content length being set if
I remember right. But I use FileUpload 1.2 and JBoss (which uses
tomcat) and we upload 10GB files today over https.
Andrew
Martin Cooper wrote:
> The limitation is in the Servlet spec: The getContentLength method
> returns
> an 'int'.
>
> --
> Martin Cooper
>
>
> On 6/5/07, Mark Webb <[EMAIL PROTECTED]> wrote:
>>
>> Is there a limitation in tomcat that limits files to 2 GB? I would
like
>> to
>> write a servlet that will be accepting files larger than 2 GB using
>> the 64
>> bit JDK.
>>
>> TIA
>> --
>> ..Cheers
>> Mark
>>
>
---------------------------------------------------------------------
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]