Converting Stream to String and back…what are we missing?

I want to serialize objects to strings, and back. We use protobuf-net to turn an object into a Stream and back, successfully. However, Stream to string and back… not so successful. After going through StreamToString and StringToStream, the new Streamisn’t deserialized by protobuf-net; it raises an Arithmetic Operation resulted in an Overflow exception. If we … Read more