1st Question:

Can someone tell me how to send 4-5 attachments as part of response.

I mean i can create a FileRepresentation using

rep = new FileRepresentation(new File(
       "xxx"), MediaType.TEXT_PLAIN, 0);

and set it in the response using 
getResponse().setEntity(rep);

but how do I set multiple files in the response?

2nd Question:

How can I send a DOMRepresentation and a FileRepresentation 
as part of the same response? I have read somewhere in the 
forum thats its not possible. In that case how to tackle 
such kind of use-cases. 

My use case requires me to send a String(contents of a page) 
and an attachment(typically a File) back to the client 
as part of Response.

Notwithstanding the drawbacks is there a way to solve this?

Regards
Surjendu

Reply via email to