java用数组读取大文本文档 java读取文件内容到byte数组 private byte[] InputStream2ByteArray(String filePath) throws IOException { InputStream in = new FileInputStream(filePath); byte[] data = toByteArray(in); in.close(); return data; } private byte[] toByteArray(InputStream in) throws IOExce...