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