Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload large size( >1GB) file to server using java

I want to upload large file (any format) more than 1GB. what technique I will use FTP or HTTP. And I want to add stop and resume feature to file i am uploading. How can I do that? Any example or API or library?

like image 956
amrit_neo Avatar asked Jun 04 '12 11:06

amrit_neo


3 Answers

Apache commons net has an FTP-client. And some other protocol implementations. http://commons.apache.org/net/

like image 198
Ludwig Magnusson Avatar answered Oct 14 '22 12:10

Ludwig Magnusson


You can try the default HttpUrlConnection or Apache HttpClient.

like image 33
Michael-O Avatar answered Oct 14 '22 12:10

Michael-O


Try this library, it contains all your desired features:

http://www.sauronsoftware.it/projects/ftp4j/

like image 27
Bogatyr Avatar answered Oct 14 '22 12:10

Bogatyr