I am working on a weekend project that aggregates downloads from other sites in a zip file with Blazor (webassmbly).
The zip file is created in c# code and need to be saved on the local computer. I am using a modified version of this answer because the file size can easily extend over 400 mb.
My Version partitions the js call to not imminently overflow the webassembly VM but after a certain filesize it happens and i get the folloring exception:
WASM: Try saving 213776418bytes --my message
blazor.webassembly.js:1 WASM: GC_MAJOR_SWEEP: major size: 1808K in use: 94964K
blazor.webassembly.js:1 WASM: GC_MAJOR: (LOS overflow) time 71.98ms, stw 72.00ms los size: 486832K in use: 481083K
WASM: Error: Garbage collector could not allocate 16384 bytes of memory for major heap section.
Uncaught (in promise) ExitStatus {name: "ExitStatus", message: "Program terminated with exit(1)", status: 1}
Is there currently any other way to save a file from WebAssembly other then transferring the file content to js and then save them with Blob?