Download image as byte[] with WebClient DownloadData is soooooo slow

Locked Download image as byte[] with WebClient DownloadData is soooooo slow

  • Sunday, August 19, 2012 12:00 PM
     
     
    Hi!

    I download an image with the WebClient DownloadData (.NET 3.5).

    but it is soooo slow.

    Exists a faster way to download an image?
    • Moved by Kee Poppy Monday, August 20, 2012 10:02 AM (From:Windows Presentation Foundation (WPF))
    •  

All Replies

  • Tuesday, August 21, 2012 10:00 AM
     
     

    You may be able to use FTP (if you are downloading a file) to perform your download, but it may not be any faster.  If the slow response is due to a slow ethernet connection, or a virus checker/firewall is validating the data you may not be able to spped upthe download.  Without seeing you code and the Webclient I can't tell if what is causing the slow response.  You could use wireshark to help determine if the slow response is on you local PC or elseway.  Wireshark will give you the time each message is sent and received on the connection, but it won't give you the specific cause of the problem.

    Another method to determine if the problem is in you software is to manually perform the downlaod using FTP and compare the download times with your software.


    jdweng