Hi, how to creae a service with RestEasy for download pdf file?
using resteasy for downloading might be not so a good idea. The better way is doing this via servlet.
You can build custom responses using the javax.ws.rs.core.Response and ResponseBuilder classes. If you want to do your own streaming, your entity response must be an implementation of javax.ws.rs.core.StreamingOutput. See the java doc for more information.
Btw: when mapping resteasy to subresources (below your context path) you need to config this