grails - Base64 encoding in Java / Groovy -


what proper way convert byte [] base64 string in java? better yet grails / groovy because tells me encodeasbase64() function deprecated. sun.misc.base64encoder package isn't recommended use , outputs different size string on windows platforms.

apache commons has many utilities:

binary package: http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/base64.html

download: http://commons.apache.org/codec/download_codec.cgi


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -