It looks like you're new here. If you want to get involved, click one of these buttons!
How to convert a string to a byte array in .NET (C#)?
Please also let me know whether encoding should be taken into consideration.
show an example of a string
You can find a good answer here.