Hello. I have a question.
I want to send to Lambda with binary data encoded in serverless.yml.
It can be set in APIGateway, but it can not be set in serverless.yml.
Could you tell me what kind of propaty should be used?
Hello. I have a question.
I want to send to Lambda with binary data encoded in serverless.yml.
It can be set in APIGateway, but it can not be set in serverless.yml.
Could you tell me what kind of propaty should be used?
Hi yamazaki,
I think there is still no âproperâ way to do this in serverless but thereâs some plugin.
See https://github.com/serverless/serverless/issues/2797
for details.
Thank you bbilget.
I have tried increasingly what is in this article.
We inserted ContentHandling: CONVERT_TO_BINARY and set MediaType from APIGateway.
However, the execution result is âinternal server errorâ.
If you specify Media Type on the API Gateway, the above error will be returned.
How can I base64encod binary data with serverless and payload it to Lambda?
Hi yamazaki,
Handling binary data with APIGW is a little tricky.
You can check my example for Java/JRestless here: https://github.com/bbilger/jrestless-examples/blob/master/aws/gateway/aws-gateway-binary/README.md
Aside from this:
Thank you bbilger.
I hava a once question.
How to set isBase64Encoded with APIGatewayďź
Method Request or Integration requestďź
You donât. You have to set it on the proxy response object in your lambda function - assuming you are using proxy integration.
See: https://forums.aws.amazon.com/thread.jspa?messageID=753476򷽄
if you post/put binary data, APIGW will set the flag on the request object.
Hello,
Check out serverless plugin, written by me
There is also examples provided, one with angular, and one with express.
PS: Stars and contribution are welcome!
Thank you bbilger and maciejtreder.
This problem was solved.
I hope serverless will be easy to use.
maciejtreder, sir, you are a life saver. Thank you. Though I will say, using this config instead in my serverless.yml seem to work better for my png case:
apigwBinary:
types:
- â/â
Is this still necessary with serverless v2.2.0? Iâm really struggling to work with the data that is received in a lambda_proxy function when itâs an image.