Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support images by enabling binary payload #12

Open
dzimine opened this issue Jul 25, 2017 · 1 comment
Open

Support images by enabling binary payload #12

dzimine opened this issue Jul 25, 2017 · 1 comment

Comments

@dzimine
Copy link

dzimine commented Jul 25, 2017

Problem: images don't go through API Gateway even when they're in /assets and everything deployed and looking fine (even API Gateway "Test" works).

Directions: set up the binary payload in API Gateway http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html

Ask: make doing this a part of the plugin.

PS. If there's a better way, please share!

@lucasklaassen
Copy link

+1 I'm trying to return images from the s3 bucket through an api gateway GET endpoint.

From this article: https://stackoverflow.com/questions/42194162/aws-api-gateway-return-binary-file-from-base64-browser-error

It looks like we'll have to use the AWS CLI to change the setting contentHandling
to equal CONVERT_TO_TEXT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants