Sending an image file from lambda

0

I have a image file stored in aws lambda /tmp folder how do I send it back as a REST/HTTP response ?

已提问 2 年前217 查看次数
1 回答
2

You need to base64 encode it and return it in the body of the response. See this doc for an example.

profile pictureAWS
专家
Uri
已回答 2 年前
profile pictureAWS
专家
已审核 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则