Tips And Tricks
Tuesday, November 24, 2009
String or StringBuilder to stream/memorystrem
string myString = sb.ToString();
byte[] myByteArray = System.Text.Encoding.UTF8.GetBytes(myString);
MemoryStream ms = new MemoryStream(myByteArray);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment