Home > @hapoosjs/aws-buckets > AWSBuckets > getFileAsBuffer

AWSBuckets.getFileAsBuffer() method

Download file contents

Signature:

getFileAsBuffer(bucketName: string, filePath: string): Promise<BucketFile>;

Parameters

Parameter Type Description
bucketName string Bucket name
filePath string File key or fully qualified name

Returns:

Promise<BucketFile>