Reads from remote file.
[Visual Basic]
Overloads Public Function RemoteRead( _
ByVal RemotePos As long, _
ByVal Count As int _
) As byte()
[C#]
public byte[] RemoteRead(
long RemotePos,
int Count
);
Parameters
RemotePos
Position in the remote file where read occurs.
Count
Total number of bytes to read.
Remarks
The RemoteRead method will read data from remote file opened with
RemoteOpen method. When data
is received, it will be provided to your application through
RemoteData event. When
receive completes, Done event
will be fired, where you can call new RemoteRead, close remote file etc..
During the transfer, Progress
event WILL NOT be fired.
If you specify -1 then complete file will be read from one RemoteRead
method call. After you finish reading all the data, don't forget to call
RemoteClose. You can not
call other methods until RemoteClose is called (for example, you cannot
call GetFile).
In Blocking mode, RemoteRead will return data immediately to you (so you
can ignore RemoteData event).