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.


Steps i tried:
1)  Built the protobuf message object and saved the output to a file
(protobuf.txt). (tried in java)
2)  Used the decode option in command line. The arguments are
     protoc --proto_path=<proto path>  <proto file name> --
decode=<fully qualified message name> <a text file path which contains
the protobuf payload>

protoc --proto_path=D:\Work\ProtoBuf\workspace2_4_0_a\TesteLVIS\src\com
\proto D:\Work\ProtoBuf\workspace2_4_0_a\TesteLVIS\src\com\proto
\TestSameName.proto --decode=com.ebay.test.Book D:\Work\ProtoBuf
\workspace2_4_0_a\TesteLVIS\src\com\proto\protobuf.txt

Please let me know what i am doing wrong here?
is it something related to file encoding? If so how do i resolve it?





-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to