David Rogers
11/21/2022, 6:36 PMtoBase64, is there a fromBase64 ?David Rogers
11/21/2022, 6:42 PMb64 = toBase64("foo");
bytes = binarydecode(b64, "base64")
s = createObject("java", "java.lang.String").init(bytes, createObject("java", "java.nio.charset.Charset").forName("UTF-8"));
writedump(s); // "foo"
maybe it would be weird to auto assume utf8, idkbdw429s
11/21/2022, 7:21 PMtoBinary() 🙂bdw429s
11/21/2022, 7:21 PM❯ #tobase64 test | #tobinary
testDavid Rogers
11/21/2022, 7:25 PMbyte[] of ascii bytes?
https://trycf.com/gist/7127ca8ff502f3d75482fa16bd5cc33f/lucee5?theme=monokaibdw429s
11/21/2022, 7:26 PMbdw429s
11/21/2022, 7:26 PMbdw429s
11/21/2022, 7:27 PMbdw429s
11/21/2022, 7:27 PM❯ #tobase64 test | #tobinary | #tostring
test
🙂David Rogers
11/21/2022, 7:27 PMfoo.toString and was getting some stringified object refbdw429s
11/21/2022, 7:28 PMbdw429s
11/21/2022, 7:28 PMbdw429s
11/21/2022, 7:29 PMtoString()David Rogers
11/21/2022, 7:32 PMtoString(...) it is, thanksbdw429s
11/21/2022, 7:37 PM