An NDoc Documented Class Library |

# FTPClient.Put Method (Stream, String)

Put a stream of data onto the FTP server in the current directory.

public virtual long Put(
Stream srcStream,
string remoteFile
);

#### Parameters

srcStream
  Input stream of data to put.
remoteFile
  Name of remote file in current directory.

#### Return Value

Number of bytes transferred.

#### Implements

IFileTransferClient.Put

#### Remarks

The stream is closed after the transfer is complete if CloseStreamsAfterTransfer is `true` (the default) and are left open otherwise.

#### See Also

FTPClient Class | EnterpriseDT.Net.Ftp Namespace | FTPClient.Put Overload List