This code sample shows how to convert Byte Array to string //function to convert byte array to string
in C# sample
//function to convert byte array to string
public static string ConvertByteArrayToString(byte[] byteArray)
{
return (new UnicodeEncoding()).GetString(byteArray);
}
And in Vb.net sample method
'function to convert byte array to string
Public Shared Function ConvertByteArrayToString(ByVal byteArray As Byte()) As String
Return (New UnicodeEncoding()).GetString(byteArray)
End Function