The typical way and examples for send(Upload) a file to FTP server uses slow requests and the
class that imposes restrictions in the size of files that are uploaded.
I present my short and easy way to upload a file to FTP server without file size limits:
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create("ftp://
XXXXXXXXXXXXXXXXXXXXX/" + "C:/XXXXX.zip");
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential("User", "PassWord");
Stream ftpStream = request.GetRequestStream();
FileStream file = File.OpenRead("C:/XXXXX.zip");
int length = 1024;
byte buffer = new byte[length];
int bytesread = 0;
bytesread = file.Read(buffer,0,length);
while(bytesread != 0);
I hope that helps you...
Sergio Andrés Gutiérrez Rojas