[protobuf] Error while using parseFrom

2012-06-27 Thread d34th4ck3r
Hi, I am trying to receive response from server which a protobuf, which is encoded, and there are { at the end of string so, I am truncating string using : registerAgentResponse_string=registerAgentResponse_string.replace({,); then I convert this to byteArray using :

Re: [protobuf] Error while using parseFrom

2012-06-27 Thread Evan Jones
On Jun 26, 2012, at 11:08 , d34th4ck3r wrote: What is it that I am doing wrong? Protocol buffers are a *binary* format. Those funny characters at the end of the string are probably part of the message, and you should leave them there. You also should not be passing them around as strings. They