如何编写从服务器到客户端PC的下载文件 [英] How Do I Code A Download File From Server To Client Pc

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

问题描述





我目前有一个文件,我创建并存储在应用程序运行的服务器上。

我想要要知道我可以使用哪些代码让用户通过单击按钮来下载文件?

Hi

I currently have a file that i create and gets stored on the server where the application runs.
I would like to know how what code can i use for the user to download the file by clicking a button?

推荐答案

你可以使用WebClient.DownloadFile

更多信息请查看这个



http://msdn.microsoft.com/en-us/library/ez801hhe%28v=vs.110%29.aspx [ ^ ]
you can use WebClient.DownloadFile
for more info check this

http://msdn.microsoft.com/en-us/library/ez801hhe%28v=vs.110%29.aspx[^]


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

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