Represents a file, blob, or Uint8Array readable as a stream of binary data chunks.

Hierarchy

  • DataSource
    • FileDataSource

Constructors

Constructors

  • Create a FileDataSource.

    Parameters

    • input: string | FileElement

      Local file path, or File/Blob/Uint8Array object to read. Local file only works in node environment.

    • Optional options: FileChunkIteratorOptions

      Options passed to the underlying FileChunkIterators, such as {chunksize: 1024}.

    Returns FileDataSource

Generated using TypeDoc