I have a file represented as a list of chunks, and the goal is to download all chunks, join and save as a file.
Requirements
- It should work for large files
- It should be cross-browser solution
What I've found...
- Use JS Array
Yes, we can download and store all chunks in regular Javascript array.- It's cross-browser solution
- But it uses RAM, and if file size exceeds free memory browser just crashes...
- FileSaver.js
- Partly cross-browser
- Limited file size
- StreamSaver.js
- Not cross-browser
- Works for large files
- Filesystem API
- It's Chrome sandbox filesystem api
- Works for large files
But I still can't achieve my goal with covered requirements...
If someone has experience for best solution I kindly ask to share it here. Thanks