LoginSignup
5
9

More than 5 years have passed since last update.

Lambda+Amazon API Gatewayでバイナリレスポンスを返す方法

Last updated at Posted at 2016-06-27

Lambdaでbase64の文字列を返して、API GatewayのTemplateで

$util.base64Decode()

とやれば良いらしい。

ただしContent-Typeを動的に変えることはできない。つまりimage/jpegのAPIを作ったらそれはimage/jpagしか返せない。

参考

5
9
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
9