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

Reply via email to