How do I get a readable stream from LocalStorage?

Hi,

When I look at the API for FileSystem, it seems that the only way to load a file:/// URI is to use something like FileSystem.readAsStringAsync(fileUri, options).

However, I’d rather get a Stream so that I can upload a larger file to a server without using a lot of device memory.

Where is an API like node’s fs.createReadStream() that I can use on the client? Or perhaps a way to load a chunk of a file at a time from which I can adapt a ReadableStream implementation?

2 Likes

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