edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Upload a stream of data to the FTP server in the current working directory. Allows appending if current file exists.

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

Syntax

C#
public virtual void UploadStream(
	Stream srcStream,
	string remoteFile,
	bool append
)
Visual Basic
Public Overridable Sub UploadStream ( _
	srcStream As Stream, _
	remoteFile As String, _
	append As Boolean _
)
Visual C++
public:
virtual void UploadStream(
	Stream^ srcStream, 
	String^ remoteFile, 
	bool append
)

Parameters

srcStream
Type: System.IO..::..Stream
Input stream of data to put.
remoteFile
Type: System..::..String
Name of remote file in current working directory.
append
Type: System..::..Boolean
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