Serialize to memory stream has invalid chars

Mar 14, 2014 at 12:20 AM
The first 3 bytes are illegal chars for xml.
Only happen on my PC?
MemoryStream ms = new MemoryStream();
chromeSerializer.Serialize(person, ms);
? ms.GetBuffer()
{byte[444]}
[0]: 239
[1]: 187
[2]: 191
[3]: 60
[4]: 67
[5]: 111
[6]: 109
Coordinator
Mar 15, 2014 at 5:57 AM
Hi, AFAIK you shoud use the following syntax:
ms.ToArray();