readAsStringAsync return undefined

Hello all ,
I get uri file with DocumentPicker.getDocumentAsync and then try to read with
FileSystem.readAsStringAsync but always getting undefined.
Thanks in advance for help

Hey @ds1973,

Without supplying the relevant code, it is very difficult to help you debug the issue since we can’t operate on the assumption that one has correctly implemented the code. Can you provide a code snippet or preferably a Snack that demonstrates this behavior?

Cheers,

Adam

GetFileAsString = async () => {
let result = null;
try {
result = await FileSystem.readAsStringAsync(this.state.result.uri);

} catch(e) {
console.log(e);
}

};

do not remember (async), because without this you can receive undefined or null

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