public static byte[] PropertyValueConvertToBinary(byte[] byteArray)
{
// The first 2 bytes of byteArray only indicates the total length of subsequent bytes,
// value is used to indicate the actual binary value in the Property Value returned,
// which should not include the first 2 bytes of byteArray.
byte[] value = new byte[byteArray.Length - 2];
Array.Copy(byteArray, 2, value, 0, byteArray.Length - 2);
return value;
}