从网络服务器下载文件 [英] downloading file from the webserver

查看:100
本文介绍了从网络服务器下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在Web服务器中放置一些exe文件.
我正在开发Windows应用程序.
所以我想从网络服务器上将那个exe文件下载到我的系统中....

我该如何处理任何想法...........



i am placing some exe files in webserver.
and i am developing a windows application..
so i want to download that exe files into my system from the webserver.......

how can i approach any idea...........

推荐答案

使用WebClient对象.一点点google(从网站上下载c#文件")走了很长一段路:

http://www.fryan0911.com/2009/03/c-download-file-from-website-using-web.html [
Use the WebClient object. A little bit of google ("c# download file from website") goes a long way:

http://www.fryan0911.com/2009/03/c-download-file-from-website-using-web.html[^]

And there''s no need to post the question twice.




我已经尝试了simmons所说的内容,但是当我将其放在服务器端并运行该应用程序时,我收到一条消息,提示为"remote server error-404"……
关于这个的任何想法....


i already try what simmons said, but when i place this one on server side and run that application i got a message as "remote server error-404"......
any idea regarding this....


西蒙斯,

您的解决方案对我有帮助,对于zip文件来说也可以..
但是我在下载exe文件时遇到问题(即exe文件为二进制格式).那么如何下载exe文件......


关于这个的任何想法.........
hi simmons,

your solution is helpful for me, it is ok for the zip file..
but i have a problem with downloading exe file(ie.,exe file is in binary form). so how to download the exe file......


any idea regarding this.........


这篇关于从网络服务器下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆