Back to product page

RemoteRead method


Reads from remote file.

Type

Byte[]

Syntax

  • C#
  • VB.NET
public Byte[] RemoteRead(Int64 RemotePos, Int32 Count);
The RemoteRead(RemotePos,Count) syntax has these parts:
RemotePosPosition in the remote file where read occurs.
CountTotal number of bytes to read.

public Function RemoteRead(ByVal RemotePos As Int64, ByVal Count As Int32) As Byte[]
The RemoteRead(RemotePos,Count) syntax has these parts:
RemotePosPosition in the remote file where read occurs.
CountTotal 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).

Platforms

Windows