0

I just contact with javascript, there is a demand, that is, to convert unit8array hexadecimal string, and to convert hexadecimal string unit8array; In simple terms; Is unit8array and mutual transformation between hexadecimal string

j.jone
  • 1
  • 1
    Related (about base64 instead of hex): http://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string – Thilo Jan 27 '16 at 01:53
  • Do you mean *uint8* instead of "unit8"? – Bergi Jan 27 '16 at 02:14
  • So there's a demand. Did you meet it? If not, why not - where is your problem? Show us the code you tried. What is your question? – Bergi Jan 27 '16 at 02:16
  • var test_string = "abcdefghijklimnopqrstuvwxyz1234567890你好"; var u8 = _stringToArrayBuffer(test_string); var zip_string = jz.gz.compress(u8); var _u8_string = _unit8arrayToString(zip_string);---------------- zip_string is after gzip compressed data, returns the uint8array; I want to put uint8array into hexadecimal string; Don't know how to turn; Is there a similar transformation function can provide? – j.jone Jan 27 '16 at 06:55

0 Answers0