private void bytesToImageFile(byte[] bytes) {
try {
File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/aaa.jpeg");
FileOutputStream fos = new FileOutputStream(file);
fos.write(bytes, 0, bytes.length);
fos.flush();
fos.close();
} catch (Exception e) {
e.printStackTrace();
}
}
安卓byte数组转图片文件
最新推荐文章于 2024-08-25 04:07:02 发布