java获取一个文件的字节数组

byte[] readAllBytes = Files.readAllBytes(new File("C:\\Users\\mayn\\Desktop\\1.png").toPath());

猜你喜欢

转载自www.cnblogs.com/liulihaha/p/10621771.html