aws lambda isBase64Encoded is not working for me

Viewed 796

so I have this set in my api gateway settings:

Binary settings

the following code in my lambda:

        return {
            "statusCode": 200,
            "body": image_in_base64,
            "headers": {"Content-Type": "image/jpeg"},
            "isBase64Encoded" : True
        } 

and this set in the gateway config: enter image description here

and when I call from a browser - I'm getting a jpeg image type - but the content length shows that the content is still base64 encoded - the gateway is never decoding it regardless of what I set isBase64Encoded to.

What am I doing wrong?
[And this HAS to work from any browser - so I can't control the "Accept" parameters]

0 Answers
Related