Search:

Type: Posts; User: copeg

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    2,151

    [SOLVED] Re: [Asking] Convert String to Byte Array

    I may have missed the full question when reading your posts as the word 'hex' was never used until Zaphod's posts rang a bell in my head...so your string is hexadecimal? An alternative to the method...
  2. Replies
    8
    Views
    2,151

    [SOLVED] Re: [Asking] Convert String to Byte Array

    You have a string of length 32. Each character of that string is 1 byte (8 bits) per character - hence an array of 32 bytes (based upon the encoding you are using - the default for your system and...
  3. Replies
    8
    Views
    2,151

    [SOLVED] Re: [Asking] Convert String to Byte Array

    I'm not sure I understand - the String is 32 characters long. Not sure how you expect the bytes of the information of the String any less than 32. That being said, read the API for the getBytes...
Results 1 to 3 of 3