I try to transfer a filedata with sockets via a sslStream. It seems that I must send the file data length before the data. The problem is that the code
Byte [] size = BitConverter.GetBytes(fileData.Length)
Returns in little endian but internet protocols are using big endian.
How I can convert this to big endian and write it to stream;