Skip to content

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 ?

1 Answer
2

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

AWS
EXPERT
answered 3 years ago
AWS
EXPERT
reviewed 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.