public byte[] getReqFileBytes() { byte[] buf = new byte[SIZE]; byte[] temp_int = null; // type temp_int = Utils.toLH(type); System.arraycopy(temp_int, 0, buf, 0, temp_int.length); // filename System.arraycopy(filename, 0, buf, 4, filename.length); // username System.arraycopy(username, 0, buf, 104, username.length); return buf; }