nicklockwood / GZIP

A simple NSData category for gzipping/unzipping data in iOS and Mac OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting only NSData not File.

employee opened this issue · comments

I want file in my .gzip File not data in NSData Format.

You can save the gzipped data as a file by using [NSData writeToFile:]

[NSData writeToFile:] is useful. But in Gzip when i used [NSDATA writeToFile:], i am not getting my files.

I think you may be confusing gzip with zip. Gzip is used for compressing an individual file or data. Zip is an archive format for compressing multiple files. You cannot use gzip to decompress a zip archive, you'll need a different library to do that.

My gzip file content only one file. I want to display that file. But i got only nsdata value. After using
[NSDATA writeToFile:], i am getting file contents as Null.
I solved my issue by another way.
For Your Helpful Support.
Thanks...