I'm on a program that sends TCP packages, and some characters of the data in the packages are 0x00 which is taken as the end of the string. So when the packages was sent, only the characters before 0x00 were in the package.

Then how can I completely send all the characters including 0x00 and those after it?