Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Send multipart form-data request (excel file) to the target server

I have an endpoint which accepts a xlsx file as multipart form-data request to be sent on target server. Now, i have a requirement to create another endpoint which accepts the JSON payload and transform it into the xlsx format and for that i have created a callout as well. I have also took some help from https://github.com/DinoChiesa/Apigee-Java-Simple-MultipartForm to create the multipart form-data request. 
I doubt that the request which i have prepared is not correct as the content inside it is not encoded as mentioned in the first trace. Kindly can someone tell me what i am missing out in this one so that it can work correctly.
Appreciate the help.

2 1 392
1 REPLY 1

I answered this q elsewhere.