0

I am getting database "swx.sqlite.gz" from server now i need to uncompress it to swx.sqlite and play with this in application.

After that when i need to send the database file then i need to compress it to swx.sqlite.gz and sent back to server.

I have searched a lot but i didn't find and lib or files for .gz extension. Like ZipArchive, SSZipArchive are working with only .zip extension.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Muhammad Saad Ansari
  • 1,748
  • 3
  • 13
  • 20
  • From the command line use `gzip -d` or `gunzip`. I think the correct library is zlib. – Axel Apr 15 '13 at 07:29
  • may be it is duplicate but i dint find my desire solution out there. – Muhammad Saad Ansari Apr 15 '13 at 07:37
  • The accepted answer to this question: http://stackoverflow.com/questions/230984/compression-api-on-the-iphone states that `NSURLRequest` handles gzip encoded payloads transparently. That would take care of download part. It may just be a question of ensuring that the right HTTP headers are in place when the server sends out the data. Have you verified if that works? – Monolo Apr 15 '13 at 08:01
  • For Unzip file http://stackoverflow.com/a/1284210/1312051 this worked for me :) – Muhammad Saad Ansari Apr 15 '13 at 08:30

0 Answers0