views:

216

answers:

0

I have an application with Java/Jersey/Spring2.5/Jboss. In one of the service response, I want to use Multipart. How can I send a Multipart response? How should I implement the MessageBodyReader and MessageBodyWriter?

I'm wrapping a byte[] in the Multipart. I have to display this on a JSP. Before this, I was using a JAXB object to wrap the byte[]. The content of the byte[] is a PDF document. When I read about send attachments to UI, Multipart is the most recommended option. So I appreciate if anyone could help with this.

Thanks Mathew