alpha0010 / react-native-file-access

Filesystem access for React Native
MIT License
307 stars 19 forks source link

Get base64 from external image #12

Closed matthieup240 closed 3 years ago

matthieup240 commented 3 years ago

Is it possible to get the base64 data from an external image ?

Actually, I have this code : await FileSystem.fetch(props.currentMessage.image, {path: Dirs.CacheDir + '/image.jpg'});

is it possible to get the base64 data from the cache path ? (Dirs.CacheDir + '/image.jpg')

Thanks

alpha0010 commented 3 years ago

Not yet implemented; will see what I can do soon.