@lancedb/lancedb • Docs
@lancedb/lancedb / BlobFile
Class: BlobFile¶
A lazy handle to blob bytes. Create one with Table.fetchBlobFiles.
Methods¶
read()¶
Reads from the cursor to the end and advances the cursor.
A second call returns an empty buffer. BlobFile.readRange does not move the cursor.
Returns¶
Promise<Buffer>
readRange()¶
Reads the half-open byte range [start, end).
Fails when end is past the blob size. Does not move the cursor.
Parameters¶
-
start:
bigint -
end:
bigint
Returns¶
Promise<Buffer>
size()¶
Returns the blob size in bytes.
Returns¶
bigint