转载自网络 (一)java自带的加密和解密 import sun.misc.BASE64Decoder; public class Base64Utils { public static String getBASE64(byte[] b) { String s = null; if (b != null) { s = new sun.misc.BASE64Encoder().encode(b); } return s; } public static byte[] getFro
1.解析base64数据成图片 The problem is that data:image/bmp;base64, is included in the encoded contents. This will result in invalid image data when the base64 function decodes it. Remove that data in the function before decoding the string, like so. $base64