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

Buckets.getFileAsBuffer() method

Download file contents

Signature:

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

Parameters

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

Returns:

Promise<BucketFile>