将文件下载到Winform应用程序 [英] Downloading files to a Winform Application

查看:106
本文介绍了将文件下载到Winform应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Winforms应用程序,需要在程序启动时下载多个视频文件和图形文件。处理这种情况的最佳方法是什么?我使用SQL Server作为我的DBMS,但我不想将文件存储在数据库中。我想将

文件存储在远程文件服务器上并从那里下载。欢迎提出所有建议。

I am developing a Winforms application that needs to download several video files and graphic files when the program starts up. What would be the best approach to handle this situation? I'm using SQL Server as my DBMS but I don't want to store the files in the DB. I want to store the
files on a remote file server and download from there. All suggestions are welcomed.

推荐答案

您可以使用 WebClient.DownloadFile下载文件 http://www.csharp-examples.net/download-files/ [ ^ ]



你可能会更好您的文件在设置过程中如果没有更改。
You can download files with WebClient.DownloadFile : http://www.csharp-examples.net/download-files/[^]

Your are probably better off putting your files in the setup process if they don't change.


这篇关于将文件下载到Winform应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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