On Sun, Jun 12, 2011 at 3:58 PM, Kavi <targetn...@gmail.com> wrote:
>
>
> Basically the strings dummy and data are the same. So why does it
> throw the error?? Somebody please suggest a fix.
>
>
Have you verified that these strings are actually the same? (By doing a
direct comparison, rather than printing them to cout) The serialization
contains binary data; you need to open the ifstream with ios::binary, and
you typically don't want to use the stream operators. You can also use the
other parsing entry points like ParseFromFileDescriptor or ParseFromIstream.



> Thanks in advance,
> Kavi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to protobuf@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

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

Reply via email to