byte[] respBytes;
if(respBytes != null){
String filepath ="C:\\Users\\abc\\Desktop\\pic\\getCaptch.png";
File file = new File(filepath);
if(file.exists()){
file.delete();
}
FileOutputStream fos = new FileOutputStream(file);
fos.write(respBytes,0,respBytes.length);
fos.flush();
fos.close();
}
byte[]转file(保存在本地)
最新推荐文章于 2025-03-14 10:47:36 发布