0

I am downloading a file using axios and using:

 await FileSystem.writeAsStringAsync(fileUri, stream, {
        encoding: FileSystem.EncodingType.Base64
      })

to write it to the file system.

When I use Sharing.shareAsync(fileUri)

The sharing option shows up and I can share the file or save it.

However if I use Linking.openURL(fileUri) I get the error Error: Unable to open URL: file:///var/mobile/Containers/Data/Application/.........

If I try using the expo web browser with the same local url, it just crashes.

This is a pdf stream by the way that is saved locally.

Any ideas on what's going on here? Thanks!

0 Answers0