title: how to convert an image into base64 string
body: <p>I want to convert image to base 64 encode to string. from that   to send to server with <code>oma_status-icon</code> xml format.</p>
  
  <p>but I am getting unsupported encoding from the server response....</p>
  
  <p>is there any other way to convert image to base64 string??</p>
  
  <p>plz..help...</p>
  
  <p>my code is: </p>
  
  <pre><code>        Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(),  R.drawable.image);
  
          ByteArrayOutputStream bao = new ByteArrayOutputStream();
          bitmapOrg.compress(Bitmap.CompressFormat.JPEG, 100, bao);
          byte [] ba = bao.toByteArray();
  
           String ba1=Base64.encodeBytes(ba);
  </code></pre>