Sending different type of data to socket as a single unit

plz help me , my requirement is t send 26 bytes of data to server socket .format of 26 bytes is first 2 bytes binary data next 4 bytes is ascii data next 10 bytes is again binary data remaining 10 bytes is ascii data and i need to send this data as a single unit ......
[276 byte] By [Raj_Sekhara] at [2007-10-3 4:39:21]
# 1
Create and fill a single buffer and use it in one write operation on the socket. With which part do have difficulties?
BIJ001a at 2007-7-14 22:43:16 > top of Java-index,Core,Core APIs...