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

await readFile returns undefined #7

@diegolaciar

Description

@diegolaciar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions