Discuss this help topic in SecureBlackbox Forum

TElBoxFile.Read

TElBoxFile     


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


Downloads the file or its part from the storage.

Declaration

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

[VB.NET]
    Sub Read(ByVal Data As System.IO.Stream)
    Function Read(ByVal Offset As Long, ByVal Size As Long, ByVal Data As System.IO.Stream) 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(int64_t Offset, int64_t Size, TStream &Data);
    int64_t Read(int64_t Offset, int64_t Size, TStream *Data);

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

[Java]
    long read(long Offset, long Size, TElStream Data);
    void read(TElStream Data);

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