alexrintt / shared-storage

Flutter plugin to work with Android external storage.
http://alexrintt.io/shared-storage/
MIT License
53 stars 25 forks source link

`getDocumentContent` takes too long to return when file is too large #91

Open alexrintt opened 2 years ago

alexrintt commented 2 years ago

Describe the bug

getDocumentContent function "crash" the app if the document is too long.

This happens when trying to read apk files.

To Reproduce

Open the example app and try to click over an apk file card.

Expected behavior

There's some way to asynchronously read the file contents.

Screenshots

Not applicable.

Additional context

Possible solutions:

provokateurin commented 2 years ago

Hi, I'm very interested in a stream based API to read and write documents as I'm building an app that is potentially used to upload and download very big files from/to local storage. This is also a feature, so please add the label and change the title :)

alexrintt commented 2 years ago

Listed, would be useful to have some way to read line by line (or maybe chunks?) with some kind of metadata (current line|chunks, max lines|chunks) rather of reading entire file at once.

BBUBBA commented 10 months ago

i'm waiting.. this update...

when update? this function? ( My file is 4GB...... OTL )

thanks your support.