IBM Aspera JavaScript Library
    Preparing search index...

    Function readChunkAsArrayBuffer

    • Read a chunk of a file as an array buffer (base64-encoded).

      Note: The maximum chunk size allowed is 50 MiB.

      Parameters

      • path: string

        path to the file to read

      • offset: number

        offset to start reading the file, in bytes

      • chunkSize: number

        the size of the chunk to read, in bytes

      Returns Promise<ReadChunkAsArrayBufferResponse>

      a promise that resolves with the file chunk data as a base64-encoded string and mime type