简体   繁体   中英

How to upload a base64 encoding string as an image to S3 using AWS Lambda [NodeJS]

I have an aws lambda function in which I recieve a String which is Base64 encoded version of a Bitmap. How can I upload it as a.png file to an S3 bucket? I have no idea how to do this. Any help would be appreciated.

Decode the base64 string into bytes, and use bytes as the body to upload to S3.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM