Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Gateway API and file response

Is it possible for AWS Gateway API to respond with a file (zip file) from a HTTP endpoint integration? I heard somewhere AWS Gateway API doesn't support binary formats but wasn't sure if that was for input or input and output.

I have an existing HTTP endpoint and I want to add AWS Gateway API over it; it currently returns a file (zip) on the response.

like image 416
Barry King Avatar asked Oct 30 '22 11:10

Barry King


1 Answers

You cannot respond with a Zip(any binary type) file using API Gateway so far. (As stated in AWS official forum)

As a work around, you can store your file on S3 and dispatch the link of the file using API Gateway.

like image 119
Thomas L. Avatar answered Nov 04 '22 08:11

Thomas L.