Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

await readFile returns undefined #7

Open
diegolaciar opened this issue Oct 12, 2018 · 0 comments
Open

await readFile returns undefined #7

diegolaciar opened this issue Oct 12, 2018 · 0 comments

Comments

@diegolaciar
Copy link

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant