Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Downlaod Files from FTP server in java  RSS feed

 
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.

 
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).
 
Sheriff
Posts: 23451
46
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!