dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 795 forks source link

Python handle base64 encoded binary response from aws lambda function #1712

Open skhrapko-amplify opened 1 year ago

skhrapko-amplify commented 1 year ago

Feature Request

Add support of base64 encoded binary response from aws python lambda function. API Gateway will treat lambda-proxy responses with isBase64Encoded set to true as binary as long as the mime-type matches one of the allowed binary types. It would be great have Python lambdas to support base64 handling. At this point serverless-offline contains Base64 handling for JavaScript lambdas only.

Sample Code