• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Downlaod Files from FTP server in java

 
Ranch Hand
Posts: 64
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).
 
Marshal
Posts: 25812
69
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.
 
It's exactly the same and completely different as this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic