Home > @hapoosjs/api-buckets > Buckets > getFileAsStream

Buckets.getFileAsStream() method

Download file contents

Signature:

getFileAsStream(bucketName: string, filePath: string, options?: GetFileOptions): Promise<Readable>;

Parameters

Parameter Type Description
bucketName string Bucket name
filePath string File key or fully qualified name
options GetFileOptions (Optional)

Returns:

Promise<Readable>