Skip to content

Blob

Values

arrayBuffer

let arrayBuffer: WebAPI.FileAPI.blob => Promise.t<ArrayBuffer.t>

Parameters

WebAPI.FileAPI.blob

Return type

Promise.t< ArrayBuffer.t >

asBlob

let asBlob: WebAPI.FileAPI.blob => WebAPI.FileAPI.blob

Parameters

WebAPI.FileAPI.blob

Return type

WebAPI.FileAPI.blob

bytes

let bytes: WebAPI.FileAPI.blob => Promise.t<array<int>>

Parameters

WebAPI.FileAPI.blob

Return type

Promise.t< array< int > >

make

let make: (
~blobParts: array<WebAPI.FileAPI.blobPart>=?,
~options: WebAPI.FileAPI.blobPropertyBag=?,
) => WebAPI.FileAPI.blob

Parameters

option< array< WebAPI.FileAPI.blobPart > > option< WebAPI.FileAPI.blobPropertyBag >

Return type

WebAPI.FileAPI.blob

slice

let slice: (
WebAPI.FileAPI.blob,
~start: int=?,
~end: int=?,
~contentType: string=?,
) => WebAPI.FileAPI.blob

Parameters

WebAPI.FileAPI.blob option< int > option< int > option< string >

Return type

WebAPI.FileAPI.blob

stream

let stream: WebAPI.FileAPI.blob => WebAPI.FileAPI.readableStream<
array<int>,
>

Parameters

WebAPI.FileAPI.blob

Return type

WebAPI.FileAPI.readableStream< array< int > >

text

let text: WebAPI.FileAPI.blob => Promise.t<string>

Parameters

WebAPI.FileAPI.blob

Return type

Promise.t< string >