A
ad
I have a string variable.
How can I convert the string to MemoryStream?
How can I convert the string to MemoryStream?
ad said:I have a string variable.
How can I convert the string to MemoryStream?
Rafal M said:ad said:I have a string variable.
How can I convert the string to MemoryStream?
.NET 2.0
byte[] a = System.Text.Encoding.GetEncoding("iso-8859-1").GetBytes("my
string");
System.IO.MemoryStream m = new System.IO.MemoryStream(a);
ad said:But what does GetEncoding("iso-8859-1") mean?
Can I use
System.Text.Encoding.Unicode.GetBytes(("my string");