JDK1.7中nio的Files對象可以協助完成這個功能
File file = new File(filePath);
byte[] b = Files.readAllBytes(file.toPath());
完~
JDK1.7中nio的Files對象可以協助完成這個功能
File file = new File(filePath);
byte[] b = Files.readAllBytes(file.toPath());
完~