这是生成代码
if (!"".equals(GZZ.getValue())) {//base64解码
BASE64Decoder decoder = new BASE64Decoder();
b = decoder.decodeBuffer(GZZ.getValue());
String path = "D:\\"+GZZBM.getValue()+"_"+"查控员工作证"+".jpg";
os = new FileOutputStream(path);
os.write(b);
os.flush();
os.close();
我是把一个xml转成excel,然后需要把xml中节点里的某些属性里的经过base64编码后的内容转成图片。
图片是生成了,可是,打不开,如图
求大神,在线等,百思不得其解啊!!!!!