Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello everyone,

i made one nice application in c# that download pdf files from websites.Now i want to make it to download some larger files like 50MB or more from servers/website. There is a problem when i try to download that file it only download 35KB of it. So my question is do you know anything about webclient in c# which can help me and solve my problem. I appreciate your time for reading this, and if you have any tut, link or smth else please share it.
Thank you.
Posted

1 solution

It's better to use not WebClient, but HttpWebReqiest:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest%28v=vs.110%29.aspx[^].

I already provided, in my past answer, a complete source code for HTTP downloader which can, among other things, continue downloading of incompletely downloaded files, tested many times, on really big files. Please see: how to download a file from internet[^].

—SA
 
Share this answer
 
v3
Comments
[no name] 7-Feb-14 5:08am    
Thank you very much Sergey you are awesome!THNAKS!
Sergey Alexandrovich Kryukov 7-Feb-14 10:46am    
You are very welcome.
Good luck, call again.
—SA

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