Answers for "download from url c#"

C#
7

how to download file from url using c#

using (var client = new WebClient())
{
    client.DownloadFile("http://example.com/file/song/a.mpeg", "a.mpeg");
}
Posted by: Guest on September-22-2020
0

c# download string url

var result = string.Empty;
using (var webClient = new System.Net.WebClient())
{
    result = webClient.DownloadString("http://some.url");
}
Posted by: Guest on June-28-2020

Code answers related to "download from url c#"

C# Answers by Framework

Browse Popular Code Answers by Language