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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论