title: Displaying images on Amazon's API Gateway for S3
body: <p>I've got an jpeg image stored in a bucket using Amazon S3. I've followed this <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-s3.html" rel="nofollow noreferrer">guide</a> roughly to setup a REST API as an Amazon S3 Proxy in API Gateway. I'm using this API endpoint as way to access the images stored in the bucket using a GET request. I've also followed along with this <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings-configure-with-console.html" rel="nofollow noreferrer">guide</a> that provides insight in enabling binary support. When I do a GET request at the given endpoint of the image, I want the image to show. The problem is that even following that guide, it doesn't work. The image doesn't show properly and I'm left with some junk: <a href="https://i.stack.imgur.com/Tczvz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tczvz.png" alt="enter image description here"></a></p>
  
  <p>Does anyone have any insight on this issue or a way they enabled binary support on their API endpoints?</p>