You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing that I think would definitely be worth having is the ability to append an existing file, and to access a file as a seekable stream without having to copy it all into RAM.
I would also love stream support. The stream does not need to be seekable. It is just so I can copy a file to public memory without having to read it fully into memory when using documentFile.writeToFileAsBytes. Ideally, the documentFile.writeToFile would also accept a stream.
Activity
EternityForest commentedon Jun 7, 2022
One thing that I think would definitely be worth having is the ability to append an existing file, and to access a file as a seekable stream without having to copy it all into RAM.
alexcmgit commentedon Jun 30, 2022
@EternityForest Do you have any examples showing how it (seekable stream) works? Would like to see it working.
Also, any further links will be helpful, I'm not aware of this kind of API.
provokateurin commentedon Aug 7, 2022
@EternityForest Is #91 this what you need for a stream based API? I'm not aware of seekable streams in dart, so this is the best you can get I guess.
mx1up commentedon Apr 12, 2023
I would also love stream support. The stream does not need to be seekable. It is just so I can copy a file to public memory without having to read it fully into memory when using
documentFile.writeToFileAsBytes. Ideally, thedocumentFile.writeToFilewould also accept a stream.For getting the stream, it seems you can follow this recipe (using virtual files): https://developer.android.com/training/data-storage/shared/documents-files#open-virtual-file
I have not tried it yet though..
Then wrap it with a dart Stream adapter