I have a PHP script that can encode a PNG image to a Base64 string.
(我有一个PHP脚本,可以将PNG图像编码为Base64字符串。)
I'd like to do the same thing using JavaScript.
(我想使用JavaScript做同样的事情。)
I know how to open files, but I'm not sure how to do the encoding. (我知道如何打开文件,但不确定如何进行编码。)
I'm not used to working with binary data. (我不习惯使用二进制数据。)
ask by username translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…