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);
There was an error while loading. Please reload this page.