在VB.NET中上传文件 [英] Uploading files in VB.NET

查看:132
本文介绍了在VB.NET中上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我目前正在研究VB.NET桌面应用程序。我有一个要求,即用户点击浏览并从他的系统中选择一个.txt文件。单击保存,文件将保存到服务器上的文件夹中。



同样,用户应该能够从服务器获取文件查看文件的内容。

解决方案

这个服务器是在网络中还是FTP服务器?

如果它在网络你可以像在本地硬盘上的任何其他文件一样复制文件(前提是用户在服务器上拥有必要的权限并且地图是共享的)



如果是FTP服务器,请查看 My.Computer.Network.UploadFile


Hello ..

i相信这个链接会有所帮助,当我遇到同样的问题时它帮了我很多。



将文件上传到FTP服务器 - VB.NET - Snipplr Social Snippet Repository [ ^ ]

Dear All,

I am currently working on a VB.NET Desktop Application. I have a requirement and that is, a user clicks on "Browse" and selects a .txt file from his system. On clicking "Save", the file is to be saved to a folder on the server.

Similarly, the user should be able to take the file from the server and view the contents of the file.

解决方案

This server is it in the network or is it a FTP server?
If it's in the network you can just copy the file like you would with any other file on your local hard disk (provided the user has the necessary rights on the server and the map is shared)

If it's a FTP server, look at My.Computer.Network.UploadFile


Hello..
i believe this link would help, it helped me alot when i encountered the same problem.

Upload file to FTP server - VB.NET - Snipplr Social Snippet Repository[^]


这篇关于在VB.NET中上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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