你好,我认为是read每次读取一个字节的引起的试着改写一下:public static byte[] read(DataInput in) throws IOException { int len = in.readInt(); byte[] bytes = new byte[len]; in.readFully(bytes); return bytes;}换用这个改写的方法可能会解决你的问题!!!