readFile returns undefined when try read the contents of m4a audio file.
I can read content of txt files.
It is possible to read file content of other file formats than txt files ?
Thanks,
let fileExists = await FileSystem.fileExists(
"audio_message.m4a",
FileSystem.storage.temporary
);
console.log("fileExists audio_message.m4a",fileExists);
// returns 'true'
const fileContents = await FileSystem.readFile(
"audio_message.m4a",
FileSystem.storage.temporary
);
console.log(`read from file: ${fileContents}`);
// returns undefined !!!!!
// and the file exist and I can play the audio file in a player.