I have a big blob for a rar file. To uncompress it I had to use this library unrar.js
The blob I am testing with is about 23MB, to readAsArrayBuffer then feed it to unrar.js I had to slice it.
For some reason unrar.js does not play well with sliced blobs--it would throw an unknown archive type error if the sliced blob range does not start with 0 or end with blob.size . -weird?-
The only workaround I can think of is to read the blob as slices then collect it back again in the onloadend function. -is that even possible?-
Collect the array buffers in one array then feed it to unrar.js to uncompress the file as if it was read from one blob.
If this sound too annoying for you I would appreciate any other way to read rar files in javascript/phonegap environment.