Returns a Stream for writing data to the remote file.

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

Syntax

Visual Basic
Public Function GetUploadStream ( _
	remotePath As String, _
	origin As SeekOrigin, _
	offset As Long _
) As Stream
C#
public Stream GetUploadStream(
	string remotePath,
	SeekOrigin origin,
	long offset
)

Parameters

remotePath
Type: System..::..String
The path of the remote file.
origin
Type: System.IO..::..SeekOrigin
Position indicator that is used to obtain new position within the stream.
offset
Type: System..::..Int64
A byte offset relative to the origin parameter.

Return Value

A Stream for writing data to the remote file.

Implements

IFtp..::..GetUploadStream(String, SeekOrigin, Int64)

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