2

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?

Community
  • 1
  • 1

1 Answers1

0

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

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820