如何连接code使用Base64字符串中的Andr​​oid?字符串、code、Andr、oid

2023-09-05 04:09:46 作者:心甘情愿!

可能重复:    Base64的EN codeR和去codeR

我试图连接code使用Base64的URL。有没有什么办法可以连接code用的Base64在Java / Android的?

I am trying to encode a Url with Base64. Is there any way to encode it with Base64 in java/android?

我需要在PHP类似base64_en code(某事)函数。

I need something similar to base64_encode() function in PHP.

推荐答案

我可以使用类在这个环节要解决的问题:

I was able to solve the problem using the class in this link:

http://iharder.sourceforge.net/current/java/base64/