Base64 encoding in Java / Groovy

前端 未结 5 1488
太阳男子
太阳男子 2020-12-14 16:27

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 encodeAsBase64() functi

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 16:36

    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

提交回复
热议问题