Badr Ajjour
Badr Ajjour

Reputation: 15

Save file to server

I need to download and save file from External server to my server for example :

Upvotes: 0

Views: 210

Answers (1)

Aniket Inge
Aniket Inge

Reputation: 25695

have a look at the WebClient class.

public void Download(string url, string filenameToSaveAs)
{
   WebClient wclient = new WebClient();
   wclient.DownloadFileAsync(new Uri(url), filenameToSaveAs);
}

Upvotes: 1

Related Questions