I am trying to process a WAV(audio) file inside an Lambda function. I had exposed the Lambda through a POST method of API Gateway. I had tried both proxy integration and POST with the body mapping template, but unable to parse the required WAV file inside the lambda. I am getting a BASE64 string through API Gateway in either of the methods, which when decoded doesn't match the original WAV file.
Is there an issue in parsing the file or something needs to be done with the body mapping template ?