Skip to main content
Version: Next

Interface: BinaryFileProvider

Defined in: packages/data-providers/src/types.ts:35

Extended by

Methods

getBinaryFile()

getBinaryFile(baseUrl, fileName, abortSignal?): Promise<ArrayBuffer>

Defined in: packages/data-providers/src/types.ts:42

Downloads a binary blob.

Parameters

baseUrl

string

Base URL of the model. Pass empty string to treat fileName as a full signed URL.

fileName

string

Filename of binary file, or a full signed URL when baseUrl is empty.

abortSignal?

AbortSignal

Optional abort signal that can be used to cancel an in progress fetch.

Returns

Promise<ArrayBuffer>