method StorageService.prototype.getStream
StorageService.prototype.getStream(path: string): Promise<ReadableStream<Uint8Array>>

Retrieves an object as a streaming body for zero-copy downloads.

Delegates to the provider's optional getStream; falls back to wrapping the buffered get result in a one-chunk ReadableStream when the provider lacks native streaming support.

Parameters

path: string

Object path/key

Return Type

A ReadableStream of object bytes

Throws

Error

If the object does not exist

Usage

import { StorageService } from "storage-plugin/src/index.ts";