Created
June 16, 2014 08:25
-
-
Save dkalamari/f3e113ad0e79fd4642fe to your computer and use it in GitHub Desktop.
ByteArrayToString
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static String ByteArrayToString(byte[] inArray) | |
{ | |
StringBuilder outString = new StringBuilder(""); | |
for (int i = 0; i < inArray.Length; i++) | |
{ | |
outString.Append(inArray[i].ToString("X2")); | |
} | |
return outString.ToString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment