I am trying to emulate this request using RestTemplate in Spring Boot
curl -X POST \'https://my.craftar.net/api/v0/image/?api_key=123456789abcdefghijk123456
just add the Resource to params instead of creating a HttpEntity
params.add("file", contentsAsResource);