Heya!
We are currently working on a project for which we are developing an internal plugin that needs to download very big files.
The download functionality provided to plugins seems to write the entire file to memory before storing it, causing the App’s memory usage to skyrocket during downloads and crashing when attempting to download files past a certain size.
I wasn’t able to find a workaround for this issue. Dynamically splitting up the data into multiple files isn’t really an option in our case. We are working on reducing the file size by optimizing the data, but since it’s a memory usage issue, there might always be edge cases where the maximum size that is downloaded successfully varies depending on device and system load.
I believe QFields’ own downloads already write files to disk partially during the download, so maybe I’m missing something?
Does anyone have experience with big downloads in QField Plugins?