HOWTO: Convert a String to a Byte Array (byte[])
Just so I don’t forget, here is how to convert a string to a byte array:
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
encoding.GetBytes(yourStringHere)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Just so I don’t forget, here is how to convert a string to a byte array:
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
encoding.GetBytes(yourStringHere)