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();
}
05-16
5496