Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Downlaod Files from FTP server in java  RSS feed

 
mohammad shadab
Ranch Hand
Posts: 62
Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am trying to download file from ftp server using one of Apache library (org.apache.commons ).it is downloading but the rate of download is very low.for 100 MB file it takes almost 40 minutes to download from ftp server.

following code i am using please look into this and suggest me if there any work round to download file from ftp in easy way.


Thanks
Shadab.

 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the download significantly faster when using a different FTP client? It might just be a slow download due to lack of bandwidth (most FTP servers support throttling).
 
Paul Clapham
Sheriff
Posts: 22819
43
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this: connect to that FTP server using an FTP client such as FileZilla, and see how long it takes to download that file. (Make sure you do that from the same computer where you're running that Java code.) Then at least you'll know whether you have a problem to solve or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!