edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

FTPClientPut Method (Stream, String, Boolean)

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

Namespace:  EnterpriseDT.Net.Ftp
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public virtual long Put(
	Stream srcStream,
	string remoteFile,
	bool append
)

Parameters

srcStream
Type: System.IOStream
Input stream of data to put.
remoteFile
Type: SystemString
Name of remote file in current directory.
append
Type: SystemBoolean
true if appending, false otherwise.

Return Value

Type: 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