APIGEE to invoke aws lambda function and upload files to s3, using Extension callout.

only JSON Response content are able upload to S3 . we want to upload response content of pdf ,doc, etc., to s3. Always facing "syntax error with position" Because Response content comes as blob data.. Searched more options but didnt working out . I tried to convert data to base64 and pass that content to s3.This also facing syntax issues, gives 200 ok but upload filed with syntax issues in extension callout. Can you please help me out on this issue.

0 1 164
1 REPLY 1

Not applicable

You can use the content type as application/pdf when sending the pdf file in request.

We have some clients who are able to do the same.