How to read a local file by chunks in JavaScript?

553 Views Asked by At

I learned how to read a local file by chunks with the help of JavaScript in Firefox ( How to read a local file by chunks in JavaScript? ).

But I wonder what if I want to read a certain range of bytes, not first several, but, say, 100-200? Is it possible to set the offsets somehow?

1

There are 1 best solutions below

0
On

Use nsISeekableStream instead. It allows you to seek() in a file.