edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

FTPClientPut(Stream, String) Method

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

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual long Put(
	Stream srcStream,
	string remoteFile
)

Parameters

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

Return Value

Int64
Number of bytes transferred.

Implements

IFileTransferClientPut(Stream, String)

Remarks

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

See Also