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