Kamis, 21 Oktober 2010
How to upload files using C#
Create FTP RequestFtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));Setup your FTP Settingsrequest.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential(username, password);request.UsePassive = false;request.UseBinary = true;request.KeepAlive = false;using System.IO we can load the fileRead more: My.I.T.Side
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar