Skip to content
chrissie1 edited this page Dec 26, 2012 · 1 revision

You can also get a file you do this by giving the uri of the file to get and a filename to a path on your local system.

var httpClient = new HttpClient();
var filename = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "hello.gif");
httpClient.GetFile("http://localhost:16000/hello.gif", filename);

Clone this wiki locally