I'm trying to send a ByteArrayOutputStream zip file with POST using Jersey.
Client client = Client.create();
client.resource(url);
ClientResponse response = webResource.type(MediaType.MULTIPART_FORM_DATA_TYPE).post(ClientResponse.class, myBaosObject.toByteArray());
But on server side I'm receiving:
WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - javax.ws.rs.WebApplicationException: org.apache.cxf.interceptor.Fault: Couldn't determine the boundary from the message!
My pom:
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.9.1</version>
</dependency>
When I call my ws method with Postman the file is send with success.
What more I have to do?