title: Send/Receive images via REST
body: <p>I am using grizzly for java rest service and consuming these web services in an android app.</p>
  
  <p>Its working fine as far as "text" data is concerned.</p>
  
  <p>Now I want to load the images(from server) in my android application, using this rest service and also allow the users to update image from the device. </p>
  
  <p>I have tried this code     </p>
  
  <pre><code>@GET
  @Path("/img3")
  @Produces(MediaType.APPLICATION_OCTET_STREAM)
  public Response getFile()
  {
      File file = new File("img/3.jpg");
      return Response.ok(file, MediaType.APPLICATION_OCTET_STREAM).header("Content-Disposition", "attachment; filename=\"" + file.getName() + "\"") // optional
              .build();
  }
  </code></pre>
  
  <p>The code above allow me to download the file, but is it possible to display result in broswer? like this
      <a href="http://docs.oracle.com/javase/tutorial/images/oracle-java-logo.png" rel="nofollow noreferrer">http://docs.oracle.com/javase/tutorial/images/oracle-java-logo.png</a></p>