Reputation: 15
I need to download and save file from External server to my server for example :
Upvotes: 0
Views: 210
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