new MemoryStream(Encoding.UTF8.GetBytes(yourString));
But if the string is very large you may want to call
Encoding.UTF8.GetEncoder() then encoding the string in buffer chunks and
write those chunks to the memory stream.
"Daniel" <so*******************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
in C# fastest way to convert a string into a MemoryStream