amazon web services - Upload image using API Gateway integrated with AWS Lambda -


i trying create api gateway server using api gateway integrated aws lambda. request coming api gateway being forwarded lambda function. lambda function calls service, authentication key. after getting key, lambda adds request(get/post) header forwarded it, , forwards our server(s) sitting outside aws. working fine in case of request , post(application/json) request, multipart working expected. in case of multipart(image) data, when request forwarded server s , s tries create image request body passed, file created not valid image file. guess data getting corrupted in between. please suggest how work on issue.

what being done in lambda function? lambda function parsing inputstream passed in "handlerequest" method jsonobject. extracts out header , body it. data added extracted header. after addition of data header, creates new request(get/post) new header , same body using okhttpclient. request forwarded our server.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -