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

SSHFTPClientPut(Stream, String, Boolean) Method

Put a stream of data onto the FTP server in the current directory. Allows appending if current file exists

Definition

Namespace: EnterpriseDT.Net.Ftp.Ssh
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public override long Put(
	Stream input,
	string remote,
	bool append
)

Parameters

input  Stream
Input stream of data to put.
remote  String
Name of remote file in current directory.
append  Boolean
true if appending, false otherwise.

Return Value

Int64
Number of bytes transferred.

Implements

IFileTransferClientPut(Stream, String, Boolean)

Remarks

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

See Also