Returns a Stream for writing data to the remote file. The remote file is created if it doesn't exist, and truncated if it does. Use GetStream(String, FileMode) method if different behavior is desired.

Namespace:  Rebex.Net
Assembly:  Rebex.Sftp (in Rebex.Sftp.dll)

Syntax

Visual Basic
Public Function GetUploadStream ( _
	remotePath As String _
) As Stream
C#
public Stream GetUploadStream(
	string remotePath
)

Parameters

remotePath
Type: System..::..String
The path of the remote file.

Return Value

A Stream for writing data to the remote file

Implements

IFtp..::..GetUploadStream(String)

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also