Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Iam using WebClint class to download a file from FTP Server location.
My file size is 2GB sometimes even more.
Currently it is taking 2hours to download single file.But it is less in filezilla.
How to increase the download speed of file using webclient? Or Is there any alternative approach to download the file with increased speed?

As of now Iam downloading one by one file.Is there any way to start downloading all files at once?
Posted
Updated 27-Sep-13 1:00am
v2

1 solution

if you could consider HttpWebRequest instead of WebClient, then you can use HttpWebRequest.AddRange Method (Int32, Int32)[^].

Refer - How to increase download speed of the file from web-sites?[^]
Quote:

Depending on the server, you might gain some speed downloading the file with several segments.


For that you can use request.AddRange and have different threads to download the same file. Note that when you write the data to a local file you must start in the correct offset.


This is something that most download managers do.


Note that some servers will not allow that.


.
 
Share this answer
 
v2
Comments
nareshkumar464 27-Sep-13 10:13am    
how can i download ftp file from HttpWebRequest?
my uri is something like 'ftp://venture.upload.akamai.com/26929/ProcessingVideos/Burnley v Nottingham Forest/13.09.24 Burnley v Forest 1st half.mp4'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900