title: How To Download PDF file using Jersey?
body: <p>I need to download pdf file using Jersey Web Services
  i already do the following but the file size received is always 0 (zero).</p>
  
  <pre><code> @Produces({"application/pdf"})
   @GET
   @Path("/pdfsample")
   public Response getPDF()  {
  
      File f = new File("D:/Reports/Output/Testing.pdf");
      return Response.ok(f, "application/pdf").build();
  
   }
  </code></pre>
  
  <p>Please help to do the correct way, thanks !!</p>