Re: [protobuf] How to use protoc --decode option?

2011-07-05 Thread Pherl Liu
The protoc reads the input from STDIN. If you pass the payload file name as parameter, protoc will treat that file as a ".proto" file. You should pipe the payload to protoc instead. On Tue, Jul 5, 2011 at 7:30 PM, Ravi wrote: > Hi, > > I am trying to convert a protobuf stream in to a readable fo

[protobuf] How to use protoc --decode option?

2011-07-05 Thread Ravi
Hi, I am trying to convert a protobuf stream in to a readable format. I got following exception. protobuf.txt:2:1: Invalid control characters encountered in text. protobuf.txt:2:2: Expected top-level statement (e.g. "message"). protobuf.txt:2:9: Invalid control characters encountered in text. S