(File file, byte[] data)
| 460 | } |
| 461 | |
| 462 | public static void saveFile(File file, byte[] data) throws IOException { |
| 463 | if (!file.exists()) { |
| 464 | file.getParentFile().mkdirs(); |
| 465 | file.createNewFile(); |
| 466 | } |
| 467 | FileOutputStream outputStream = new FileOutputStream(file); |
| 468 | outputStream.write(data); |
| 469 | outputStream.close(); |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | public static class Base64Utils { |