Page 1 of 1

How can I encode images into a string?

Posted: Mon Jan 27, 2020 5:06 am
by Darlex
Hello again dudes!
I have a question. How do I encode an image into a base64 string to later be decoded into a drawable image?

Re: How can I encode images into a string?

Posted: Mon Jan 27, 2020 6:19 am
by Nelvin
You can use imageData:getString and use the result with data.encode to get a base64 encoded string. Later on just reverse the operation with data.decode and image.newImageData

Re: How can I encode images into a string?

Posted: Tue Jan 28, 2020 12:28 pm
by AuahDark