Using Array Of Bytes RRS feed

  • Question

  • User-872604801 posted

    [First, sorry for my BAD english]
    [I'm using an translator]

    I have an address in the type 'array of bytes'

    81 ?? ?? 02 53 02 d0 27

    To mess with it in visual basic, I use the format in Hex:
    &H81 &H02 &H53 .....

    I do not know what 'put' in relation to the 'question marks'
    I've tried:


    and even leave it blank


    Monday, August 22, 2011 9:13 AM


All replies

  • User1105670391 posted

    i am not sure, but it looks like the byte array is loosing data

    note that when reading binary string, vb.net trys to apply encoding like utf8 or unicode, and that totally messes up a byte array, try to use binary safe functions like filestream/binaryreader/binarywriter 's functions when reading byte array

    Wednesday, August 24, 2011 8:48 AM
  • User-578657687 posted


    Based on your information, I guess this link about converting an array of bytes into a string may be useful to you:


    Any doubt please tell me.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 25, 2011 2:32 AM