How to encode a string with Base64 in Android?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4322182/base64-encoder-and-decoder">Base64 encoder and decoder</a>  </p>
</blockquote>



<p>I am trying to encode a Url with Base64. Is there any way to encode it with Base64 in java/android?</p>

<p>I need something similar to base64_encode() function in PHP.</p>
