Alex Rivera | Logout

Compression API on the iPhone

Asked 2008-10-23T18:57:53.517
31

Is there a compression API available for use on the iPhone? We're building some RESTful web services for our iPhone app to talk to, but we want to compress at least some of the conversations for efficiency.

I don't care what the format (ZIP, LHA, whatever) is, and it does not need to be secure.

Some respondents have pointed out that the server can compress its output, and the iPhone can consume that. The scenario we have is exactly the reverse. We'll be POSTing compressed content to the web service. We're not concerned with compression going the other way.

Edit
Report

2 Answers

1

trust me the best choice is to use ZipArchive see: How to decompress an AES-256 encrypted Zip file?

ready for help if needed.

answered 2010-11-03T07:04:41.597
0

NSURL says it supports the gzip encoding so you shouldn't have to do anything more than have your RESTful web service return gzip encoded content when appropriate. All the decoding will be done under the covers.

answered 2008-10-23T20:32:20.580

Your Answer