string ftpfullpath = @"ftp://myftp.com/Test.xml"; FtpWebRequest ftp = WebRequest.Create(ftpfullpath) as FtpWebRequest; if (ftp != null) { ftp.Credentials = new NetworkCredential("uname", "pass"); ftp.KeepAlive = false; ftp.UseBinary = true; ftp.Method = WebRequestMethods.Ftp.UploadFile; } FileStream fs = File.OpenRead(blobfilePath.Replace("https","http")); byte[] buffer = new byte[fs.Length]; fs.Read(buffer, 0, buffer.Length); fs.Close(); Stream ftpstream = ftp.GetRequestStream(); ftpstream.Write(buffer, 0, buffer.Length); ftpstream.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)