This project is read-only.

Does this FTP library support to Put file with FTPStream?

Jul 9, 2013 at 3:07 PM
Edited Jul 9, 2013 at 3:31 PM
Does this FTP library support to Put file with FTPStream?


Updated: (Found Solution)
            using (FTPStream ostream = client.PutFile(/full/or/relative/path/to/file))
            {
                try
                {
                    string data = "Testing data";
                    System.Text.ASCIIEncoding encoding = new ASCIIEncoding();
                    ostream.Write(encoding.GetBytes(data),0, encoding.GetByteCount(data));  
                }
                finally
                {
                    ostream.Close();
                }
            }