我尝试从https站点下载文件,每次将文件保存到我的机器时,它只有1KB。该文件应该是1MB。我正在使用Webclient。使用webclient下载文件
string strFile = @"c:\myfile.txt";
WebClient wc = new WebClient();
wc.Credentials = new System.Net.NetworkCredential("userid", "pw");
wc.DownloadFile("https://www.mysite.come/myfile.txt", strFile);
我想念什么?
你看过文中的内容吗?它是文件的第一个1K还是别的? – 2010-06-11 15:48:51
woa,6个问题,没有接受...你应该做点什么 – ShinTakezou 2010-06-11 15:50:32