Advertise Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Calcuccino Programmers' Calculator
($2.99)

DataFon(Build Apps on Windows)
(free)

Infinote Pinboard for Todos and Notes
(free)

picplz
(free)

poG
($2.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-03-2008, 09:59 AM   #1 (permalink)
Tylenol is my friend
 
Join Date: Oct 2008
Location: Midwest
Posts: 144
Default HTTP GZIP support?

During our development, we are using uncompressed REST webservices.
This is fine for development, but we know we are going to have to use gZIP compression to get much better performance.

Has anyone tried accessing a compressed data stream (using GZIP) on the iPhone?

If so, is there anything special that needs to be done or does the built in data objects already handle the decompression before it is presented to my application.
__________________
-----
-) No matter what forum you join, you always start as a newbie. Even if you own the board.
-) There is no stupid question, if you think it is stupid don't answer it and it will fall of the screen
-) If you post some helpful solution, then that could lead to more helpful solutions. Soon, it is a chain reaction and then the forum becomes a monumental programming resource.
Fontano is offline   Reply With Quote
Old 12-09-2008, 11:17 PM   #2 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 262
Question GZIP SUPPORT..

hi,

Do anybody has used retrieving the GZIP buffer from http server..

Please help about this..

THank u.
mpramodjain is offline   Reply With Quote
Old 12-09-2008, 11:31 PM   #3 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 262
Smile

Quote:
Originally Posted by Fontano View Post
During our development, we are using uncompressed REST webservices.
This is fine for development, but we know we are going to have to use gZIP compression to get much better performance.

Has anyone tried accessing a compressed data stream (using GZIP) on the iPhone?

If so, is there anything special that needs to be done or does the built in data objects already handle the decompression before it is presented to my application.
Hi,
The following link contains info, may be useful.
iPhone Development Blog

http://iphonedevelopertips.com/cocoa...zipd-data.html

http://www.bigevilempire.com/codelog...ion-with-gzip/

Last edited by mpramodjain; 12-10-2008 at 01:59 AM.
mpramodjain is offline   Reply With Quote
Old 02-23-2009, 03:09 PM   #4 (permalink)
iPhone Developer
 
Join Date: Feb 2009
Posts: 3
Default

GZIP support is built in from firmware 2.1.

All you need to do is:
NSData *webData = [NSData dataWithContentsOfURL:url];

And if the server sends back gzip content with the right headers, then the resulting NSData will contain the uncompressed data.

More information here: Are you testing in both 2.0 and 2.1?
NickDalton is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 51,374
Threads: 52,830
Posts: 225,477
Top Poster: BrianSlick (3,576)
Welcome to our newest member, bob8caldwell
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:27 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0