![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hello Dave (MemoryStream)html.GetReport()).GetBuffer() returns a byte array of the message. If you do not intend to display the preamble bytes (0xEF, 0xBB, 0xBF), could you remove those bytes from this byte array? For example: byte[] data = new byte[] { 0xa, 0xb, 0xc, 0xEF, 0xBB, 0xBF, 0x1, 0x2, 0x3 }; List<byte> list = new List<byte>(data.Length); foreach (byte b in data) { if (b != 0xEF && b!= 0xBB && b!= 0xBF) list.Add(b); } byte[] result = list.ToArray(); |
#4
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |