users@jersey.java.net

[Jersey] Re: how to upload large file more then 2 gb using jersey?

From: adnan.maks <adnan.maks_at_gmail.com>
Date: Wed, 29 Feb 2012 23:01:52 -0800 (PST)

Whatever server you are using, could you plz try doing this at the client end
because I noticed HTTP seems to have a limitation of 2 GB in streaming as
well (I am not sure of this limit though) and chunking helped transfer even
4 GB files(The downside could be that http does not support resuming of
aborted downloads and for large files this could be a concern for the amount
of time the http connection needs to be alive and without any aborts due to
network issues)).

Client client = Client.create(config);
                client.setChunkedEncodingSize(1024*1024);


- This worked for me even for streaming and multipart file transfers. Plz do
this bit and then as Noah says if you are using GlassFish, plz follow what
he is saying.

-Adnan

--
View this message in context: http://jersey.576304.n2.nabble.com/how-to-upload-large-file-more-then-2-gb-using-jersey-tp7283481p7331800.html
Sent from the Jersey mailing list archive at Nabble.com.