跳至內容

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 ?

已提問 3 年前檢視次數 693 次
1 個回答
2

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

AWS
專家
已回答 3 年前
AWS
專家
已審閱 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。