My application is swings based application

I want to send bytes of information to server.
and at the same time server also need to send bytes of information to client.

coz using Hessian I am not able to send large amount of bytes..so i am using Http upload.

how to write code on the server side to retrieve the bytes..
what type of servlet should I use for this type of application ?

How can I write bytes to client from server?


Any help is appreciated..
Pass me source code if you have or any references.

Thank You,
Regards,
Kotesh.