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

AWSBuckets.getFileAsStream() method

Download file contents

Signature:

getFileAsStream(bucketName: string, filePath: string): Promise<Readable>;

Parameters

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

Returns:

Promise<Readable>