Hi, using resteasy 3.0.11 provided in Wildfly 9.
I just need to transmit InputStream received from another rest service. @GET @Produces(MediaType.APPLICATION_OCTET_STREAM) @Path("/files/{fileName}/content") public Response streamFile(@PathParam("fileName") String fileName) throws IOException { Invocation.Builder request = new ResteasyClientBuilder().build().target("htt....").request(); InputStream is = request.get(new GenericType<InputStream>() {}); return Response.ok().entity(is).build(); } But i should probably close the response somewhere. How to do it? If i change me code like below (to be able to call res.close()) only a part of original InputStream is readed and i become IO Closed Stream exception. Response res = request.get(); InputStream is = res.readEntity(new GenericType<InputStream>() {}); tHx. ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users