An NDoc Documented Class Library |

# FTPConnection.UploadStream Method (Stream, String, Boolean)

Upload a stream of data to the FTP server in the current working directory. Allows appending if current file exists.

public virtual void UploadStream(
Stream srcStream,
string remoteFile,
bool append
);

#### Parameters

srcStream
  Input stream of data to put.
remoteFile
  Name of remote file in current working directory.
append
  `true` if appending, `false` otherwise.

#### Remarks

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

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace | FTPConnection.UploadStream Overload List