E
E
Egor2021-06-05 17:22:56
C++ / C#
Egor, 2021-06-05 17:22:56

How to quickly download a 4GB file?

Good evening.
There was a need to write a program that will download a file weighing 4GB.
I used the WebClient and simply made a button in the program, when clicked, the download of the same file began. Added a progress bar and launched the program. I pressed the button, after which I realized that the download of such a file takes a long time (20 minutes). I will not consider the method of compressing a file into an archive, you need to download it without an archive.
How can this be done?
I read about downloading files in parts, but I did not find working examples anywhere, etc.
Please help me find what I need.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2021-06-05
@KenKup11

Pass in the title Rangeto download the desired part. But what's the point if you're already pumping one part at maximum speed.

R
rPman, 2021-06-05
@rPman

Does the same file download faster from the same place and at the same time of the day by other means (browser, web downloaders)?
If 'no' - then the reason is more likely in the Internet provider or on the sending side (they may limit the speed or the provider is simply overloaded
) Is there a clumsy implementation? As an option, implement a multi-threaded download (sometimes providers both on the sending side and local ones limit the speed per connection and not for the entire session).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question