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?
Use
nsISeekableStream
instead. It allows you toseek()
in a file.