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

Namespace: EnterpriseDT.Net.Ftp.Ssh
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual long Put(
	Stream input,
	string remote,
	bool append
)
Visual Basic
Public Overridable Function Put ( _
	input As Stream, _
	remote As String, _
	append As Boolean _
) As Long
Visual C++
public:
virtual long long Put(
	Stream^ input, 
	String^ remote, 
	bool append
)

Parameters

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

Return Value

Number of bytes transferred.

Implements

IFileTransferClient..::..Put(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