无法下载文件 [英] cannot download files
本文介绍了无法下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
应该看起来很简单,但它不起作用
WebClient client = new WebClient(); client.DownloadFile(" http://192.168.100.1/downloads/somefile.zip" ;, @" c:\ file.zip");
我得到一个15KB的文件。原来是2兆。我不知道为什么会这样。如果我尝试通过IE7下载文件,我会遇到同样的问题。如果我用firefox下载,整个文件下载并运行正常。
为什么会发生这种情况?
谢谢。
should seem simple enough, but it's not working
WebClient client = new WebClient(); client.DownloadFile("http://192.168.100.1/downloads/somefile.zip", @"c:\file.zip");
i get a 15KB file. the original was 2 megs. i have no idea why this is happening. if i try to download the file through IE7, i get the same problem. if i download with firefox, the entire file is downloaded and runs fine.
any ideas why this is happening?
thanks.
推荐答案
羞耻感:-(
bump of shame :-(
这篇关于无法下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文