title: Base64 encoding in Java / Groovy
body: <p>What is the proper way to convert a byte [] to a Base64 string in Java? Better yet would be Grails / Groovy because it tells me that the <code>encodeAsBase64()</code> function is deprecated. The <code>sun.misc.BASE64Encoder</code> package isn't recommended for use and outputs a different size string on some Windows platforms.</p>