Is there any way to send a Message without having the .NET framework add the
"serializat ion" data to the body of the message? I am sending binary
structures in the message and I need full control over what is in the body
of the message. I see some extra bytes before and after the message I asked
the system to write. I am looking for a way to get rid of those so I can
send binary structures in messages to a C++ program and vice versa.
I am using the following code to send a message:
---
MessageQueue messageQueue = new MessageQueue(@" .\private$\test ");
byte[] buffer; // binary structure is in this array
Message message = new Message(buffer, new BinaryMessageFo rmatter());
messageQueue.Se nd(message);