Webclient downloadfileasync not working C#
- by Sandeep Bansal
Hi everyone
I got a WPF application and I want to download a file.
I'm using System.Net; and I have the following code:
WebClient ww = new WebClient();
www.DownloadFileAsync(new Uri("http://www.sinvise.net/tester/1.jpg"), AppDomain.CurrentDomain.BaseDirectory + "\\1.jpg");
The problem is, is that it doesn't download the file, it's just showing…