问题
Are there any javascript libraries that can take a byte array and bz2 decompress it into another byte array? I know that many browsers have this capability for an entire stream, but this array is at an offset from the start of the stream.
回答1:
Yes. Here's ont for byte array: https://github.com/antimatter15/bzip2.js And for binary strings: https://github.com/kirilloid/bzip2-js
来源:https://stackoverflow.com/questions/9434613/bz2-in-javascript