Discuss this help topic in SecureBlackbox Forum

TElBoxFile.Read

TElBoxFile     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Downloads the file or its part from the storage.

Declaration

[C#/Java]
    void Read(System.IO.Stream Data);
    long Read(System.IO.Stream Data, long Offset, long Size);

[VB.NET]
    Sub Read(ByVal Data As System.IO.Stream)
    Sub Read(ByVal Data As System.IO.Stream, ByVal Offset As Long, ByVal Size As Long) As Long

[Pascal]
    procedure Read(Data: TStream);
    function Read(Data: TStream; Offset, Size : Int64): Int64;

[C++]
    void Read(TStream &Data);
    void Read(TStream *Data);
    int64_t Read(TStream &Data, int64_t Offset, int64_t Size);
    int64_t Read(TStream *Data, int64_t Offset, int64_t Size);

[PHP]
    void Read(TStream $Data)
    integer Read(TStream $Data, integer $Offset, integer $Size)

Parameters

  • Data - destination stream where the file or its part should be downloaded to
  • Offset - Offset from which to start reading
  • Size - Size of the data block in bytes

Return value

    Returns the number of bytes which were actually read.

Description

    Use this method to download the file or its part from the remote storage.

Discuss this help topic in SecureBlackbox Forum