base64数据转换为jpg:
public void genJpg() throws IOException {
// base64 数据
String imgData="iVBORw0KGgoAAAANSUhEUgAAAMEAAAF6CAYAAACgODyeAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQV4VEcXvbhDkEKhuJfipbi7O8GTQEiCBA0aPLgFSHCCB3d3p1ihOBQo2tLiTgX9v3PT9/7dZJPdtyQvy8u939evbHZm3sy5c8bezrmxLpz/5dPLF69ITBAwIgLJUySj/AXyRNi0WD8e/ulT6bLFjNh+aZMgQEePnCJr/VtIIB3F0AgICQztXmmcLQgICWxBSdIYGgEhgaHdK42zBYHPIsHFC1dJTo1sgVnSfIkImJ4ahbsxtoVBX2Ljpc6CABAw7d9CAukTMRIBIUGMdLs02hQBIYH0hxiPgJAgxncBAUBIIH0gxiMgJIjxXUAAEBJIH4jxCAgJYnwXEACEBNIHYjwCQoIY3wUEACGB9IEYj4CQIMZ3AQFASCB9IMYjICSI8V1AABASSB+I8QgICWJ8FxAAhATSB2I8AkKCKOoCx46fpk2bd1D9ejWpVMnvw33KX3/9TRP9Z1KjhrWoQP5vOd0///xL06bPoxo1Kql/C13A9es3KU6cOJQ9exZ6//49vXz1OtxnxI0Th5InTxZFLf3yixUSRIEPt23fS337+6kljx09kOrWqW7xSc+fv6SyFerRhHFDqFbNKpxm3vxlNHnqbGpQvybly5eb/4aO3Ny5If/706dP1LylJ925+zsFzfFnErR19Q63Jblz56B1q+dHQUuNUaSQIBL9+PHjJ1ocvIomTppB5cuVInT+/r6j6NDhY+TTsyO5ubagWLFiqU9EZ3727DmVr9SQSVCjemW6dfsONWjkGqZWSZIkphNHt6t/f/r0GXXu2p8uXvyFVq8Mort376nfHT5ynDZs3E4jhvejxIkTE/KWLVM8EltqrKKEBJHkzzNnL9C4CdO4U7Zt04x6dPekBPHj079v35K//0xaunwdFSlcgHr7dKZCBfPxU51beNDlK9fUGqRKlZL/jQ6O0XtG4Fg6dOQ4+Y2YRNMDx1CF8qXNavv33//QT6fOMOFAwA8fPlC8eHFp1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EigASxJakwEhATG9Ku0SgMCQgINYElSYyIgJDCmX6VVGhAQEmgAS5IaEwEhgTH9Kq3SgICQQANYktSYCAgJjOlXaZUGBIQEGsCSpMZEQEhgTL9KqzQgICTQAJYkNSYCQgJj+lVapQEBIYEGsCSpMREQEhjTr9IqDQgICTSAJUmNiYCQwJh+lVZpQEBIoAEsSWpMBIQExvSrtEoDAkICDWBJUmMiICQwpl+lVRoQEBJoAEuSGhMBIYEx/Sqt0oCAkEADWJLUmAgICYzpV2mVBgSEBBrAkqTGREBIYEy/Sqs0ICAk0ACWJDUmAkICY/pVWqUBASGBBrAkqTEREBIY06/SKg0ICAk0gCVJjYmAkMCYfpVWaUBASKABLElqTASEBMb0q7RKAwJCAg1gSVJjIiAkMKZfpVUaEBASaABLkhoTASGBMf0qrdKAgJBAA1iS1JgICAmM6VdplQYEhAQawJKkxkRASGBMv0qrNCAgJNAAliQ1JgJCAmP6VVqlAQEhgQawJKkxERASGNOv0ioNCAgJNIAlSY2JgJDAmH6VVmlAQEigASxJakwEhATG9Ku0SgMCQgINYElSYyIgJDCmX6VVGhAQEmgAS5IaEwEhgTH9Kq3SgICQQANYktSYCAgJjOlXaZUGBIQEGsCSpMZEQEhgTL9KqzQgICTQAJYkNSYCQgJj+lVapQEBIYEGsCSpMREQEhjTr9IqDQiYkeDC+V8+vXzxymL20mWLaShWkgoCXw4CZiT49OnTJ0tVN0305TRNaioI2IaAkMA2nCSVgREQEhjYudI02xAQEtiGk6QyMAJCAgM7V5pmGwI2keDihasU3qmRbY+RVIKA4yKQPEUyyl8gD1cwVninQ45bfamZIBC5CAgJIhdPKe0LREBI8AU6TaocuQgICSIXTyntC0Tgf2xB/ZDjseKJAAAAAElFTkSuQmCC";
// 生成新图片的路径
String imgFilePath = "E:\\Project\\erp-gms\\erp-gms-rest\\src\\main\\java\\com\\ejlerp\\gms\\rest\\jpg.jpg";
BASE64Decoder decoder = new BASE64Decoder();
OutputStream out = null;
try {
out = new FileOutputStream(imgFilePath);
byte[] b = decoder.decodeBuffer(imgData);
for (int i = 0; i < b.length; ++i) {
if (b[i] < 0) {
b[i] += 256;
}
}
out.write(b);
} catch (Exception e) {
e.printStackTrace();
} finally {
out.flush();
out.close();
}
}