R
Randy
Hello,
Is there an easy way to convert a string to a stream?
Thanks
Is there an easy way to convert a string to a stream?
Thanks
Randy said:Is there an easy way to convert a string to a stream?
Ignacio Machin ( .NET/ C# MVP ) said:Hi Randy,
You are missing the ASCII property form ASCIIEncoding:
System.Text.ASCIIEncoding.ASCII.GetBytes("test");
instead of:
System.Text.ASCIIEncoding.GetBytes(printbuffer)
BTW, I posted before an incorrect post, BitConverter.GetBytes() does not
have an overload for string , please ignore it.
Cheers,
dot.state.fl.us> said:You are missing the ASCII property form ASCIIEncoding: