webclient downloads

  • Thread starter Thread starter justinpatterson
  • Start date Start date
J

justinpatterson

i am using a webclient to download a list of wavs and mp3s from a web
site but it is very slow. From my browser i can download it in about
15-30secs.In the program it can take up to 3 or 4 minutes. Is there
more overhead with webclient is is there something else slowing down? I
tried to watch the transaction with a packet sniffer and it didnt show
anything at all. So i am confused about how webclient works

Justin
 
WebClient download is very simple. It just doeas a stream read of the
complete file. It's probably the stream implementation that's slow.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
JistinPatterson,

Webclient is in my (and not alone my) expirience very fast.

Extra Threads can help you much to speed up here.

Know that how many threads you use, it will with standard Http 1.1 settings
of a computer never do more downloads than 2 in the same time.

I hope this helps?

Cor
 
Back
Top