> How can i send binary data over a network using winsock. I dont want to
> use a char array as the binary data has a lot of 'NUL' characters in it which
> causes problems when i receive data using recv() and store in a character
> array.
What problems do you get?
"char" has nothing to do with strings... so I do not see the problem...
If you interpret a char-array as a string then this is your problem...

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/