title: Base64 decode string in Android
body: <p>I am trying to encode and decode a String using android.util.Base64, but it gives a bad base-64 error.</p>
  
  <pre><code>String str = "EOKF36syRBtB11VgyChkNjc1HxRrajT7XXaxZfnVzPkV57K3b9yqkS284Ovb9uWzXgGeY2bxA3IySGfdOHiPAQ==F/v6hcTiU1sd975XHfDsz8o0rboujM77n7KwRMidobOLbo5ghUT/IFcxElUc8CirdZxaCaS3zs/CfRKRsXwbFNYd";
  Base64.decode(str,Base64.NO_WRAP);
  </code></pre>
  
  <p>I am trying to decode the string using the following flags (NO_CLOSE, DEFAULT, NO_PADDING, URL_SAFE) but it give the same error.</p>
  
  <p>Please help me to solve my problem.</p>