[protobuf] decode messages that are in protocol buffer format

2011-10-18 Thread newbie
Hi, I am developing a sniffer that will sniff messages moving between a message broker and DWH. The messages are written in protocol buffers serialization format. So the message body that I sniff is a byte string. How do I decode this message to human readable format? The sniffer is developed

[protobuf] Re: decode messages that are in protocol buffer format

2011-10-19 Thread newbie
data can be interpreted in different ways). However, if you read the encoding spec, you should be able to guess many cases. Marc On 18 Oct 2011, at 11:03, newbie choudhury.ana...@gmail.com wrote: Hi, I am developing a sniffer that will sniff messages moving between a message broker

[protobuf] Re: decode messages that are in protocol buffer format

2011-10-20 Thread newbie
. Marc On 19 October 2011 12:00, newbie choudhury.ana...@gmail.com wrote: What I tried to do is this. using ProtoBuf; ... byte[] body = e.Body; using (MemoryStream memStream = new MemoryStream(body))      {           memStream.Seek(0, SeekOrigin.Begin