如何使用C#将文件上载到Ftp服务器? [英] How Do I Upload File To Ftp Server Using C#?

查看:186
本文介绍了如何使用C#将文件上载到Ftp服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



如何使用c#将文件上传到ftp服务器。



谢谢提前。





最好的问候。



sairam

解决方案

您好,



您可以使用 FtpWebRequest Class 通过FTP上传文件。



可以在此MSDN教程中找到中的一个示例。 。



希望它有所帮助/


步骤1)做一点研究。谷歌是一个很好的起点

ie:

简单的C#FTP类 [ ^ ]

http://www.vcskicks.com/csharp_ftp_upload.php [ ^ ]

步骤2)开始编码

步骤3)编译并使用调试来解决小问题

步骤4)当你遇到问题时你不知道怎么解决但是至少你试过它,然后回来问一些具体的代码片段给出问题



对不起,如果这不是你的答案正在寻找。但你的问题有点太宽,无法在快速答案中得到解答。如果你对具体问题提出10个具体问题,那就更好了,你得到更快的帮助,而不是关于如何引导的大问题


你可以通过这个,这个链接将会帮助您。

使用FTP将文件上传到服务器 [ ^ ]

hi experts ,

how to upload file to ftp server using c#.

thanks in advance .


best regards .

sairam

解决方案

Hi,

You can use the FtpWebRequest Class to upload files via FTP.

An example of this can be found in this MSDN tutorial.

Hope it helps/


Step 1) Do a little research. Google is a good start point
i.e:
Simple C# FTP Class[^]
http://www.vcskicks.com/csharp_ftp_upload.php[^]
Step 2) Start coding
Step 3) Compile and use the debug to solve little issues
Step 4) When you get a problem you don't know how to solve but at least you tried it, then come back and ask for something concrete with a snippet of the code giving problems

Sorry if this is not the answer you were looking for. But your question is a bit too wide to be answered at the "Quick" Answers. It is better and you get faster help if you make 10 concrete questions about concrete problems, than a big question about a "how-to guide"


You can go through this, this link will help you.
Upload file to server using FTP[^]


这篇关于如何使用C#将文件上载到Ftp服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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