Hi Paul,
Appreciate your quick response.
I managed to have it working this way:
In my services:
MultiPart multiPart = new MultiPart();
multiPart.bodyPart(new BodyPart(response.getReceipts(),
MediaType.APPLICATION_OCTET_STREAM_TYPE));
return
Response.status(Status.OK).entity(multiPart).type(MediaType.MULTIPART_FORM_DATA).build();
In my client:
MultiPart multiPart = clientResponse.getEntity(MultiPart.class);
byte[] response = multiPart.getBodyParts().get(0).getEntityAs(byte[].class);
Is this the right way to do it?
Thanks,
Mathew
--
View this message in context: http://jersey.576304.n2.nabble.com/Multipart-MessageBodyReader-MessageBodyWriter-tp5234675p5235417.html
Sent from the Jersey mailing list archive at Nabble.com.