4 ms·
You can open a large file using a File or Blob, which do not store all the data in memory at once. Then you can read slices from it. That even works synchronous
by azakai 2y ago
You can open a large file using a File or Blob, which do not store all the data in memory at once. Then you can read slices from it. That even works synchronously, in Workers:
https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync https://developer.mozilla.org/en-US/docs/Web/API/FileReaderS...
- modeless 2y agoYes, I have done this. But sometimes you need a large chunk of data in memory and things get dicey quickly.