title: Base64 usage in android studio vs DatatypeConverter
body: <p>I'm fairly new to using Android Studio as opposed to rom os builds, i know there is Base64 which has similar encoding methods as DatatypeConverter but i'm not very familiar with it's usage...A couple of issues i've run into and don't know how to make them work the same as DatatypeConverter:</p>
  
  <pre><code>if (fromLogs) {
      payload = DatatypeConverter.parseBase64Binary(new String(payload));
  }
  
  byte[] rawKey = DatatypeConverter.parseBase64Binary(encodedKey);
  </code></pre>
  
  <p>can anyone help with the correct syntax for converting this to Base64?</p>