Sftp.IFtp.GetFile Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
IFtp.GetFile(String, Stream, Int64)
Downloads the specified part of the remote file to the data stream.
Declaration
long IFtp.GetFile(string remotePath, Stream outputStream, long remoteOffset)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
Stream | outputStream | The output stream. |
Int64 | remoteOffset | The starting offset of the remote file. |
Returns
Type | Description |
---|---|
Int64 | Number of bytes transferred. |
Implements
Remarks
If the local file does not exist, it is created.
IFtp.GetFile(String, String, Int64, Int64)
Downloads the specified part of the remote file to the specified offset of the local file.
Declaration
long IFtp.GetFile(string remotePath, string localPath, long remoteOffset, long localOffset)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
String | localPath | The path of the local file. This cannot be a directory. |
Int64 | remoteOffset | The starting offset of the remote file. |
Int64 | localOffset | The starting offset in the local file. |
Returns
Type | Description |
---|---|
Int64 | Number of bytes transferred. |
Implements
Remarks
If the local file does not exist, it is created.