title: how return array of image from rest web services
body: <p>iam fresh in android,,
  want to return array of image from rest web services ,, i found this
      @GET
      @Produces("image/jpg")
      public Response getFullImage() throws IOException {
          File[]myFile = new File[2];</p>
  
  <pre><code>myFile[0]=new File("C:\\Program Files\\test.jpg");
  myFile[1]=new File("C:\\Program Files\\test2.jpg");
      BufferedImage image =ImageIO.read(myFile[0]) ;
      image =ImageIO.read(myFile[1]) ;
  
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
     ImageIO.write(image, "png", baos);
      byte[] imageData = baos.toByteArray();  
    return Response.ok(new ByteArrayInputStream(imageData)).build();
  }
  </code></pre>
  
  <p>but how store array of image into bufferimage in way which can recive in client side and separete between image 
  thnx all</p>