我有一个 WPF 应用程序,我想下载一个文件。
我正在使用 System.Net;我有以下代码:
WebClient ww = new WebClient();
ww.DownloadFileAsync(
new Uri("http://www.sinvise.net/tester/1.jpg"),
AppDomain.CurrentDomain.BaseDirectory + "\\1.jpg");
问题是,它没有下载文件,它只是显示为 0kb 文件而不下载,我不知道是什么问题,谁能帮忙?