I have a image file stored in aws lambda /tmp folder how do I send it back as a REST/HTTP response ?
You need to base64 encode it and return it in the body of the response. See this doc for an example.
Is it necessary to decode the base64 encoding ?
Also the documentation is not clear on connecting it to api gateway in appropriate manner for sending images as a response .
The document mentions using a Lambda proxy integration for API Gateway at the top - https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.
좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.
Is it necessary to decode the base64 encoding ?
Also the documentation is not clear on connecting it to api gateway in appropriate manner for sending images as a response .
The document mentions using a Lambda proxy integration for API Gateway at the top - https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html