首先请大佬们看下,网上这个文章是不是写的非常不负责任?完全不提安卓的Base64.encodeToString(byte[] byteArray, int flag) 有flag这个参数,拿默认参数,就以偏概全得出他所谓的结论
https://blog.csdn.net/wgw335363240/article/details/120219475
言归正传,
我看到安卓Base64中源码这样
public class Base64 { public static final int CRLF = 4; public static final int DEFAULT = 0; public static final int NO_CLOSE = 16; public static final int NO_PADDING = 1; public static final int NO_WRAP = 2; public static final int URL_SAFE = 8;