I am trying to convert a bytearray into a string. The problem is whenever I try to append a NULL character using String.fromCharCode(0) it cuts off the end of the string and than I cant run it throw base64. I tried using String.fromCharCode(32) (space) instead but no luck.
Any ideas of how to resolve it?
Thanks!
I am trying to convert a bytearray into a string . The problem is
Share
You don’t need to convert your data to a string, you can use directly
Base64Encoder::encodeBytesto encode your ByteArray.