且构网

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

在窗口窗体应用程序中使用C#上传和下载音频文件

更新时间:2023-12-06 10:59:04

如果要上传到网站,则必须使用.Net HttpWebRequest对象.如果要通过FTP传输,则必须使用.Net FTPWebRequest类(或类似的类). Google是您的朋友.

顺便说一句,在CodeProject上有一篇文章讨论了FTP方法:

C#FTP客户端库 [
If you want to upload to a web site, you have to use the .Net HttpWebRequest object. If you want to transfer via FTP, you have to use the .Net FTPWebRequest class (or something similar). Google is your friend.

BTW, there''s an article here on CodeProject that discusses the FTP approach:

C# FTP Client Library[^]