Can anyone give me a sample program how to receive a binary files over TCP using QSocket or other similar class?

Thx in advance..