cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Form-Data Attachment to Rest API - 404 Error

nidhi_srivastava22
Active Contributor
0 Likes
213

Hi Experts,

I have a requirement where base 64 data was being sent from Sender which was decoded and converted in the binary format to be sent to the receiver, but the receiver is accepting the attachment in form-data format.

PFB the screenshot and script which I used to convert my binary file to byte and added the headers following form-data guidelines. 

nidhi_srivastava22_0-1737720269448.png

nidhi_srivastava22_1-1737720351965.png

nidhi_srivastava22_2-1737720372060.png

Header

nidhi_srivastava22_3-1737720489117.png

 
Error Details
org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://XXX.atlassian.net/rest/api/3/issue/SZZ-86/attachments with statusCode: 400

Please suggest, If I am missing some inputs and how can I resolve the same.

Thanks.

Best Regards,

Nidhi Srivastava

Accepted Solutions (0)

Answers (0)