Quantcast
Channel: Alex FTPS Client
Viewing all articles
Browse latest Browse all 114

New Post: Does this FTP library support to Put file with FTPStream?

$
0
0
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();
                }
            }

Viewing all articles
Browse latest Browse all 114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>