I’m writing a JavaScript windows store app. My requirement is to read a file which is available locally and get arraybuffer or Uint8array as the response.
I tried using “Windows.Storage.FileIO.readBufferAsync(file)” but that is giving me an IBuffer object.
- Is there an API that reads a file and gives me arraybuffer?
- How do i convert “IBuffer” to “arraybuffer” ?
Thanks in Advance
You can use a DataReader, for instance: