Does this FTP library support to Put file with FTPStream?
Updated: (Found Solution)
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();
}
}