try {
FileImageOutputStream imageOutput = new FileImageOutputStream(new File("D:\\20-m2\\test.jpg"));
imageOutput.write(busiLicensePhoto, 0, busiLicensePhoto.length);
imageOutput.close();
System.out.println("Make Picture success,Please find image in " + "D:\\20-m2\\test.jpg");
} catch (IOException e) {
e.printStackTrace();
}
字节流转图片
最新推荐文章于 2024-01-30 17:16:06 发布