title: Send byte array of a Bitmap using http post in android?
body: <p>In my application I need to call an API Using Http Post to send some information to the web server. So I need to append userid, name, phoneNo and image to the url. I need to convert the image to a byte array and append it to url. I used the following code but it didn't work for me. I just got a byte array like this <code>[B@4055dd90</code></p>
  
  <p>My code is </p>
  
  <pre><code>Bitmap bitmap1 = ((BitmapDrawable) d).getBitmap();
  ByteArrayOutputStream stream = new ByteArrayOutputStream();
  bitmap1.compress(Bitmap.CompressFormat.PNG, 100, stream);
  byte[] bitmapdata = stream.toByteArray();
  </code></pre>
  
  <p>Can Some one please help Me ?</p>
  
  <p>Thanks in advance !</p>