1

I'm working on a PhoneGap application that uses jQuery and jQuery Mobile. I need a way to compress data somehow (for local storage) and also decompress it using JavaScript/jQuery. So far, the only thing I've seen is jSEND but as far as I know, it only compresses the data and the PHP counterpart is responsible for decompressing. What I need is a local compress / decompress action.

Propeller
  • 2,465
  • 6
  • 35
  • 49

1 Answers1

1

Currently there's no phonegap compression library/plugin. It would be nice solution, unfortunately it would also be platform dependent.

Still there's javascript solution for zip compression: http://stuartk.com/jszip/

With that in mind you can then send it/upload it as a BASE64 string.

Gajotres
  • 57,309
  • 16
  • 102
  • 130