title: Get Image file from HTTP Response Body
body: <p>Android Client send a request to the server.</p>
  
  <pre><code>HttpClient httpclient = new DefaultHttpClient();
  HttpPost httppost = new HttpPost("http://test.com/test");
  HttpResponse response = httpclient.execute(httppost);
  </code></pre>
  
  <p>and then received response from server like below</p>
  
  <pre><code>HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Date: Wed, 26 Sep 2012 10:59:35 GMT
  Content-Type: multipart/form-data; type="image/jpeg"; boundary="simple_boundary"; start="&lt;image&gt;"; start-info="image/jpeg"
  Transfer-Encoding: chunked
  
  2000
  
  --simple_boundary
  
  Content-Type: image/jpeg
  Content-Transfer-Encoding: binary
  Content-ID: &lt;image&gt;
  
  ......JPEG Binary Code Here.....
  
  --simple_boundary
  </code></pre>
  
  <p>How can I get the Image(binary) from the response.</p>
  
  <pre><code>InputStream is = response.getEntity().getContent();
  </code></pre>
  
  <p>(InputStream)is contains boundary and content information also.</p>
  
  <pre><code>--simple_boundary
  
  Content-Type: image/jpeg
  Content-Transfer-Encoding: binary
  Content-ID: &lt;image&gt;
  
  ......JPEG Binary Code Here.....
  
  --simple_boundary
  </code></pre>
  
  <p>How can I get pure Image binary data.
  And it's possible??</p>