Closed GoogleCodeExporter closed 9 years ago
This test is invalid. The output of a protobuf serialization is ***not***
string data, so you *cannot* use UTF8 to create a string from them. That is
using a string encoding the wrong way around. If you need to create a string
from protobuf, use base-64, i.e.
result = Convert.ToBase64String(Result, 0, streamLength);
and
MemoryStream mm = new MemoryStream(Convert.FromBase64String(serializedText));
Original comment by marc.gravell
on 24 Jun 2011 at 9:33
Yes, you are right. It works for me after making it to Base64.
Sorry, my bad for not reading the BinaryFormatter implementation and posted
this.
Many thanks to you for quickly identifying the mistake.
Regards
Sanjeev
Original comment by san.ar...@gmail.com
on 24 Jun 2011 at 10:20
Original comment by marc.gravell
on 24 Jun 2011 at 10:41
Original issue reported on code.google.com by
san.ar...@gmail.com
on 24 Jun 2011 at 9:11Attachments: