Convert image uri to base64

I want to use code below to take snap shot and share.

ReactNative.takeSnapshot(this.refs.location, {format: ‘jpeg’, quality: 1}).then((uri) => {

});

I had try to use FileSystem.readAsStringAsync(fileUri, options) to convert into base64, but this only suitable for file.
So, I would like to ask how to convert uri into base64 String ?

Thanks!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.