EN code和德code Base64的字符串作为十进制字符串coddec [英] encode and decode base64 string to decimal string coddec
问题描述
我有这样一个base64字符串=pCZXOVjpnlePyDk6znZrSw ==我需要一个连接codeR /德codeR将其转换为这样的十进制字符串=84587163248712923874
是否有任何codeC是这样做?
I have a base64 string like this = "pCZXOVjpnlePyDk6znZrSw==" i need a encoder/decoder to convert it to decimal string like this = "84587163248712923874"
Is there any codec that do it?
推荐答案
Base64的EN code /德code是默认库的一部分,现在(终于)。再看类的 javax.xml.bind.DatatypeConverter 。在那里你会发现两个方法 printBase64Binary 和 parseBase64Binary (以及一些其他的对话程序)。
Base64 encode/decode is part of the default libraries now (finally). Look at the class javax.xml.bind.DatatypeConverter. In there you will find two methods printBase64Binary and parseBase64Binary (along with a few other conversation routines).
这篇关于EN code和德code Base64的字符串作为十进制字符串coddec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!