If anyone has done the same then please reply. I tried with the
java.net.URLConnection and DataOutputStream but flushing the stream also did
not send the bytes to the servlet to receive.

So I'm just trying to find out if this can be achieved with HttpClient 4.0.



AT Pune wrote:
> 
> Hi,
> 
> Once it is successful then I will need to do it over HTTPS.
> 
> I want to do the following.
> 
> 1. Chunk a large file (of > 3 GB size) into smaller pieces. Chunk size
> should be configurable.
> 2. Open an output stream on a URL of my servlet that is running on Tomcat
> web server.
> 3. Stream these chunks one by one to this output stream.
> 
> I could upload this file to my servlet running on local Tomcat using
> HttpClient.execute() that takes the entire file in one go and uploads it.
> But I want to chunk the file then stream it and move to the next chunk and
> so on until all the chuncks are written by the servlet.
> 
> Can this be implemented using HttpClient 4.0? 
> 
> Thanks,
> Anurag
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-stream-a-large-file-%28%3E3GB%29-using-chunking--tp29949397p29956672.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to