if(more) { byte b = 64; out.write(b); out.flush(); more = false; } int size = in.readInt(); imgData = new byte[size]; for(int i = 0; i < size; i++) imgData[i] = in.readByte();