开发者

Javascript: Image to Base64?

开发者 https://www.devze.com 2023-01-22 04:01 出处:网络
Is there any way how to encode a png/jpeg/gif image to base64 using 开发者_运维问答Javascript (can\'t use canvas toDataURL)? Thank you.If you can\'t use the canvas API, then you can\'t.

Is there any way how to encode a png/jpeg/gif image to base64 using 开发者_运维问答Javascript (can't use canvas toDataURL)? Thank you.


If you can't use the canvas API, then you can't.

Not unless it does a loopback with the server which returns the base64 encoded image.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号