Use BitConverter Class to Convert a Byte Array

BitConverter’s ToString?method can be used to convert a byte array to a string.

See below for an example:

byte[] byteArray = ?string convertedString = BitConverter.ToString(byteArray).Replace("-","");
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts