Read the data from the blob as an ArrayBuffer.
This copies the data into a new ArrayBuffer.
Read the Blob
as an ArrayBuffer object
https://developer.mozilla.org/en-US/docs/Web/API/Blob/arrayBuffer
Read the data from the blob as a JSON object.
This first decodes the data from UTF-8, then parses it as JSON.
Read the contents of the Blob
as a JSON object
in browsers, this function is only available for Response
and Request
Offset any operation on the file starting at begin
and ending at end
. end
is relative to 0
Similar to TypedArray.subarray
. Does not copy the file, open the file, or modify the file.
If begin
> 0, Bun.write() will be slower on macOS
Optional
begin: numberstart offset in bytes
Optional
end: numberabsolute offset in bytes (relative to 0)
Offset any operation on the file starting at begin
and ending at end
. end
is relative to 0
Similar to TypedArray.subarray
. Does not copy the file, open the file, or modify the file.
If begin
> 0, Bun.write() will be slower on macOS
Optional
begin: numberstart offset in bytes
Optional
end: numberabsolute offset in bytes (relative to 0)
Read the data from the blob as a ReadableStream.
Generated using TypeDoc
Blob
powered by the fastest system calls available for operating on files.This Blob is lazy. That means it won't do any work until you read from it.
size
will not be valid until the contents of the file are read at least once.type
is auto-set based on the file extension when possibleExample
Example