How can I encode a file into a base 64?
Using js I need to create a script that converts a local file into a base 64 string. Any ideas how I can achieve this?
I saw a post from about 8 years ago, outdated and it said:
var file = newFile(filePath);
file.encoding = 'BINARY';
However looking through js Illustrator documentation I don't find a method for encoding.
