byte buf[] = new byte[52];   //52是 (包头)4+10+4+4+2+ (包体)8+10+4+4+2然后,将需要发送的相应的数据按要求保存到buf中
System.ArrayCopy()将buf[]读入InputStream()中,就应该行了