java 中 byte[]、File、InputStream 互相轉換工具類

java 中 byte[]、File、InputStream 互相轉換 一、將File、FileInputStream 轉換爲byte數組: File file = new File("test.txt"); InputStream input = new FileInputStream(file); byte[] byt = new byte[input.available()]; input.
相關文章
相關標籤/搜索