Home > @hapoosjs/api-buckets > Buckets > getFileAsStream
Download file contents
Signature:
getFileAsStream(bucketName: string, filePath: string, options?: GetFileOptions): Promise<Readable>;
| Parameter | Type | Description |
|---|---|---|
| bucketName | string | Bucket name |
| filePath | string | File key or fully qualified name |
| options | GetFileOptions | (Optional) |
Returns:
Promise<Readable>