IFtp.GetUploadStream Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
GetUploadStream(String)
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.
Declaration
Stream GetUploadStream(string remotePath)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
Returns
Type | Description |
---|---|
Stream | 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.
GetUploadStream(String, SeekOrigin, Int64)
Returns a Stream for writing data to the remote file.
Declaration
Stream GetUploadStream(string remotePath, SeekOrigin origin, long offset)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
SeekOrigin | origin | Position indicator that is used to obtain new position within the stream. |
Int64 | offset | A byte offset relative to the origin parameter. |
Returns
Type | Description |
---|---|
Stream | 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.