title: How many ways to convert bitmap to string and vice-versa?
body: <p>In my application i want to send bitmap image to the server in the form of string, i want to know how many ways are available to convert a bitmap to string. now i am using Base64 format for encoding and decoding, it takes little bit more memory. is there any other possibilities to do the same thing in different ways which takes less memory cosumptions.
  Now i am using this code.</p>
  
  <pre><code>Resources r = ShowFullImage.this.getResources();
  Bitmap bm = BitmapFactory.decodeResource(r, R.drawable.col);
  ByteArrayOutputStream baos = new ByteArrayOutputStream();  
  bm.compress(Bitmap.CompressFormat.PNG, 100, baos); //bm is the bitmap object   
  byte[] b = baos.toByteArray();
  
  String encodedImage = Base64.encodeToString(b, Base64.DEFAULT);
  </code></pre>