(File file)
| 61 | } |
| 62 | |
| 63 | private static byte[] readToByte(File file) throws IOException { |
| 64 | try (FileInputStream is = new FileInputStream(file)) { |
| 65 | return readToByte(is); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | private static byte[] readToByte(InputStream is) throws IOException { |
| 70 | try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) { |