[英]React-Native: Download Image and convert it to Base64 Image
Is there a way to convert an image from an URL (website) and afterwards to convert it to a Base64 Image? 有没有一种方法可以从URL(网站)转换图像,然后再将其转换为Base64图像?
My goal is it to download an image from website and to store it with AsyncStorage so that I can access the image without internet. 我的目标是从网站下载图像并将其存储在AsyncStorage中,这样我就可以在没有Internet的情况下访问图像。
I think you can use any third party library to do so. 我认为您可以使用任何第三方库来这样做。
https://github.com/riyadhalnur/node-base64-image https://github.com/riyadhalnur/node-base64-image
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.