Closed usmanhashmi2123 closed 2 years ago
Hello and thanks for asking, we do not support and will not support base64 because of its bad influence on performance. Thank you 🙂
hello
that's too bad because I technically need base64: I need to encrypt the file I'm uploading, and I need the base64 of the file to encrypt it with my algo...
do you have a suggestion ?
well it seems not so hard
const RNFS = require('react-native-fs');
..
const base64 = await RNFS.readFile(document.uri, 'base64');
Base64 Result
Some times there is a requirement to send file as base64
Possible implementation
Code sample