November 25th, 2008
Encoding C# strings as Byte[] (Byte Arrays) and back again - 3
![Encoding and Converting C# strings into Byte[] byte arrays](http://www.dijksterhuis.org/wp-content/uploads/2008/11/byte.jpg)
When working with io streams (such when sending and receiving information from a NetworkStream) you often have to convert C# strings into Byte[] (byte arrays) and back again. At this point it is important to consider how you would like to encode your string. This post shows how you can pass a string to a method that only accepts byte arrays — and how you can turn byte arrays back into strings again.
Read the rest of this entry »



Except where otherwise noted, content on this site is