Aws lambda 如何在aws api网关中处理二进制数据(图像响应)

Aws lambda 如何在aws api网关中处理二进制数据(图像响应),aws-lambda,amazon-cloudformation,aws-api-gateway,Aws Lambda,Amazon Cloudformation,Aws Api Gateway,我的Lambda函数返回以下对api网关的响应 response_json= { 'headers': {"Content-Type": "*/*"}, 'statusCode': 200, 'body': response.decode('utf-8'), 'isB

我的Lambda函数返回以下对api网关的响应

response_json= {
                        'headers': {"Content-Type": "*/*"},
                        'statusCode': 200,
                        'body': response.decode('utf-8'),
                        'isBase64Encoded': True
                    }
下面是我的get方法的云形成温度。但是在客户端,我没有得到二进制数据。 谁能帮帮我,我哪里出了问题? 请帮忙

  getMethod:
    Type: 'AWS::ApiGateway::Method'
    Properties:
      AuthorizationType: None
      HttpMethod: GET
      Integration:
        Type: AWS_PROXY
        IntegrationHttpMethod: POST
        IntegrationResponses : 
         [
            {ContentHandling: CONVERT_TO_BINARY, StatusCode: 200}
         ]
        PassthroughBehavior: WHEN_NO_MATCH
        Uri: !Sub >-
          arn:aws:apigateway:${RegionShortName}:lambda:path/2015-03-31/functions/arn:aws:lambda:${RegionShortName}:${AccountId}:function:a${AssetInsightId}-get-rendition-use1/invocations
      ResourceId: !Ref iamgesresourceid
      RestApiId: !Ref restapi