Unable to converted the selected file to base64 in react-native:0.78.0 #817
Unanswered
gkasireddy202
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Platform: iOS
Picker Version: "@react-native-documents/picker": "^10.1.1",
import {pick,types,errorCodes,isErrorWithCode} from '@react-native-documents/picker';
import RNFS from 'react-native-fs';
try {
const res = await pick({
type: [types.allFiles],
mode:'open',
});
RNFS.readFile(res[0].uri, 'base64').then((base64String) => {
Beta Was this translation helpful? Give feedback.
All reactions