java io读写文件相关阅读:http://www.cnblogs.com/wing011203/archive/2013/05/03/3056535.html public class DemoIO { public static byte[] readForInputStream(File file) throws IOException{ InputStream in = new FileInputStream(file); byte b[]=new byte[(int)file.len