ͼƬתbase64字符串网站:http://imgbase64.duoshitong.com/// 前缀,比如data:image/jpeg;base64,String prefix = imgBase64.substring(0, imgBase64.indexOf(",") + 1);// 替换前缀为空imgBase64 = imgBase64.replace(prefix, "");byte[] bytes = new BASE64Decoder().decodeBuffer(imgBase64);InputStream inputStream = new ByteArrayInputStream(bytes);//处理inputStream......
来源:博客园
作者:惊艳了时光
链接:https://www.cnblogs.com/jylsgup/p/11565762.html