BASE64Decoder decoder = new BASE64Decoder();
String[] arr = path.split("base64,");//path是图片字符串
byte[] buffer = decoder.decodeBuffer(arr[1]);
FileOutputStream os = new FileOutputStream(realPathOld);//realPathOld是保存路径
os.write(buffer);
图片共享网站:www.sharepic.vip