0

I am using OkHttp3 and want to achieve the same result as in postman attached file in android: https://drive.google.com/file/d/0BzRp7y4UMDw_b293c2NMbFoxMHc/view?usp=sharing

The call will send POST with "form-data" key:"wav" and the value an attached audio file from resources

A sample code is what I need

Duna
  • 1,564
  • 1
  • 16
  • 36
  • Use multipart Request to upload your audio file. – Andy Developer Jun 21 '17 at 11:19
  • For reference you can [refer this](https://stackoverflow.com/questions/35622676/image-upload-using-okhttp/35622812#35622812). you need to just change the mime type and you can easily upload your audio file. – Andy Developer Jun 21 '17 at 11:20

0 Answers0