当我从Vb下载文件它被损坏 [英] When I Download A File From Vb It Gets Corrupted
本文介绍了当我从Vb下载文件它被损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dim wc As WebClient = 新 WebClient()
wc.DownloadFile( myfilehost \mods.zip, mods .zip)
i从4share下载
解决方案
第一个参数应该是url,第二个参数是实际文件名。您也可以在URL中输入文件名。请查看此处的示例:
http:/ /msdn.microsoft.com/en-us/library/ez801hhe%28v=vs.110%29.aspx [ ^ ]
祝你好运!
the weird thing is, it worked before? this is my code
Dim wc As WebClient = New WebClient()
wc.DownloadFile("myfilehost\mods.zip", "mods.zip")
i download it from 4share
解决方案
First parameter should be the url and the second parameter the actual filename. You give the filename also in the URL. Check the example here:
http://msdn.microsoft.com/en-us/library/ez801hhe%28v=vs.110%29.aspx[^]
Good luck!
这篇关于当我从Vb下载文件它被损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文