Attach file to ticket using zoho desk API and spring RestTemplate

Attach file to ticket using zoho desk API and spring RestTemplate

Hello,

I want to attach a file on a ticket using the Zoho desk API. It works fine using postman but always got and HTTP 500 when I try with Spring Rest template in Java.

I can't figure out what is wrong.

Thanks in advance.