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.

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

Syntax

Visual Basic
Function GetUploadStream ( _
	remotePath As String _
) As Stream
C#
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.

Remarks

Because the FTP protocol does not support processing multiple commands or transfers at the same time, the stream has to be closed before any other FTP operation can be used.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also