开发者

how to unzip an image in the iphone code

开发者 https://www.devze.com 2023-01-17 00:37 出处:网络
to unzip an image file sent after gzipping it on the server side i know i have to use gzopen. i want to know if there is a more direct and simple way to do this with \'compressiontype\' or something

to unzip an image file sent after gzipping it on the server side i know i have to use gzopen.

i want to know if there is a more direct and simple way to do this with 'compressiontype' or something related that once i have the 'zipped image data' received from the server using NSURLconnection can i l开发者_如何学运维oad an imageview using an easier method.


The zip library you are using will dictate how you can unzip the received data.

I haven't found a zip library that will unzip directly from an NSData object; I've found that the data needs to be written to a file (in the documents directory) and then unzipped.

I use 'ziparchive' available http://code.google.com/p/ziparchive/wiki/PageName

0

精彩评论

暂无评论...
验证码 换一张
取 消