app/src/main/java/safeluck/drive/evaluation/util/FileUtil.java
@@ -293,4 +293,28 @@ return "M" + sb.toString(); } public static byte[] readFile(String path) { InputStream inputStream = null; File file = new File(path); if (!file.exists()){ return null; } try { inputStream = new FileInputStream(file); } catch (IOException e) { e.printStackTrace(); } byte[] data = new byte[0]; try { data = toByteArray(inputStream); } catch (IOException e) { e.printStackTrace(); } try { inputStream.close(); } catch (IOException e) { e.printStackTrace(); } return data; } }