Download Files by web link C #

1

I'd like to deploy on a system that I'm making an option to download the files over the web, for pre-defined cloud links that I have.

But I'm not able to do this implementation. Can you help me?

    
asked by anonymous 18.07.2018 / 06:08

1 answer

4

Using the WebClient method, you can do this simply. Here is an example:

using (var client = new WebClient())
 {
         client.DownloadFile("http://exemplo.com/arquivo/foto/foto1.jpg", "foto1.jpg");
 }  
    
18.07.2018 / 12:39