Skip to main content
Version: Next

Interface: BinaryFileProvider

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

Extended by​

Methods​

getBinaryFile()​

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

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

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>