JAX-RS simple binary file download

2011-08-25 Thread Peter Murray
Greetings folks, I'm trying to implement a simple binary transfer of a file from client to server using the JAX-RS extension for restlet. I have a method similar to this: @GET @Path(/download) @Produces(application/octet-stream) public InputStream download() { return new

Re: Version 2: How to get XML representation

2011-08-25 Thread Alex Milowski
On Thu, Aug 25, 2011 at 10:10 AM, Ivano Carrara icarr...@studio5.it wrote: Hi all, Using Version 1 of Restlet, I built a client to get Xml from a remote server and to examine it using Xpath expressions - below a fragment of code: Request req = new Request(Method.GET, url); Client client =