且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Windows应用程序在本地系统中存储文件?

更新时间:2022-11-05 20:45:11



如果使用Windows应用程序,则可能需要将文件从一个位置复制到另一位置,而不是文件上传.文件上载概念用于服务器不是本地计算机的Web应用程序中.

要在Windows应用程序中复制文件,则可以使用 File.Copy [
Hi,

If you are working with windows application then you may need to copy file from one location to another location instead of file upload. File upload concept is used in web application where server is not your local computer.

To copy your file in your windows application then you can use File.Copy[^] function.

In case you need to store this file centrally then you can use Database to store your file.

In case you do not want to store this file in database but you want to store this file centrally then you have to create one service to stream this file on the server. Sharing folder also works but it''s not recommended.

Hope i answered your all query
Thanks
-Amit Gajjar


请参阅以下链接:
http://***.com/questions/1435037/how-应该在winforms中存储每个用户数据 [ http://***. com/questions/3102193/how-to-download-file-in-local-machine-which-is-selected-in-combo-box [ ^ ]


--Amit
Refer the links below:
http://***.com/questions/1435037/how-should-i-store-per-user-data-in-winforms[^]
http://***.com/questions/3102193/how-to-download-file-in-local-machine-which-is-selected-in-combo-box[^]


--Amit