I am trying to connect to a chat server ( rediff ) So I monitored the packets sent by rediffbol and saved a dump of it. I am trying to emulate those packets and send them from my application. But the tcp dump consists of several null characters like ( 8A 00 00 00 00 00 00 47 61...) I can not send it as string as the string gets terminated at the null . If i try to send it as chars then the connection is terminated when it reaches null. I tried making an object which will hold the data and tried to send that object By ObjectOutputStream But it does not work , instead some weird data is sent . the hex dump looks as the following :-

8A 00 00 00 00 00 00 00 00 00 00 00 0B 00 00 00
47 61 74 65 6B 65 65 70 65 72 32 0F 00 00 00 47
65 74 4C 6F 67 69 6E 53 65 72 76 65 72 73 5C 00
00 00 18 00 00 00 52 65 64 69 66 66 20 42 6F 6C
38 2E 30 20 20 62 75 69 6C 64 20 32 37 35 03 00
00 00 0A 00 00 00 52 42 4F 4C 2F 31 2E 32 2E 35
17 00 00 00 52 42 4F 4C 2F 31 2E 32 2E 35 2B 48
54 54 50 5F 43 4F 4E 4E 45 43 54 0F 00 00 00 52
42 4F 4C 2F 31 2E 32 2E 35 2B 48 54 54 50

What should be my approach ?

rediffbol - the rediff chat client connects to 203.199.83.62:1863 dispatch server. I need to send that data to the server to let it refer the client to an available notification server...Please help..