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 年前

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

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

回答問題指南