日期:2014-05-18  浏览次数:20882 次

知道webservice上文件的路径,怎样在WinForm(C/S)窗体上下载呢?
比如webservice上文件的路径是:http://192.168.1.11/Upload/FileInfo/aaa.doc, 怎样在WinForm(C/S)窗体上把它下载到本机上呢?

------解决方案--------------------
C# code
WebClient client = new WebClient();
client.DownloadFile(@"http://192.168.1.11/Upload/FileInfo/aaa.doc", @"c:\123.doc");