title: Java Base64 encoding loss of data
body: <p>say I have the following snippet, where <code>certificate</code> is a java Certificate object:</p>
  <pre><code>byte[] data = certificate.getEncoded();
  
  String stringData = new String(Base64.encodeBase64(data));
  
  byte[] newData = Base64.decodeBase64(stringData)
  </code></pre>
  <p>Is there any chance <code>data</code> will not be equal to <code>newData</code>? basically, is there loss of information to string and then back?
  Thanks</p>