Hi sir,
How can string can be converted to byte array and viceversa ?
could you please reply this soon..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 21, 2013, 1:59 PM
In .NET all strings are stored in Unicode format (normally 2 bytes per character) and the following program shows how you can convert a string to a byte array and back again using this encoding:
Console.ReadKey();
The output is:
Pankaj PandeyPosted Jun 21, 2013, 9:34 AM
try it