Hi Pete,

this should work.
Do you checked it with the debugger?

best regards
   Stephan


-----Ursprüngliche Nachricht-----
Von: "Peter Murray" <[email protected]>
Gesendet: 25.08.2011 16:22:33
An: [email protected]
Betreff: JAX-RS simple binary file download

>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 FileInputStream(myBinaryFile);
>}
>
>When I use a REST proxy client (or invoke the /download resource with a 
>debugging tool), I consistently get only the first few hundred bytes of the 
>file. The contents appear to be the legitimate contents of the file, but only 
>the first part of the file. The number of bytes is different each request.
>
>Is this a legitimate JAX-RS configuration? Has anyone successfully gotten this 
>to work?
>
>Cheers,
>
>pete
>
>------------------------------------------------------
>http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2829698


___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2830477

Reply via email to