Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rupesh.swami

macrumors newbie
Original poster
Mar 9, 2009
29
0
hi all,
i am new to iPhone.I want to ask that what is the compressed file format which is used in iPhone. so i can use containg files programmatically. for example in symbain based mobile(like nokia), we use .Jar (.jad) file .in Blackberry we use .cod file

Please guide me
 
I don't think there is one. Applications are delivered as signed bundles as described in the documentation.

ok.
i have an idea. Please suggest me

i add text file on application/user directoy. this text file contains the path of compressed file. so whenever application start, application pick the compressed file path from this text file and decompress the file.
 
Why? You can add any type of file you want to your bundle, compressed or whatever. But the question is why are you so concerned about compressing it?
 
Why? You can add any type of file you want to your bundle, compressed or whatever. But the question is why are you so concerned about compressing it?


sir,
let me explain.

i want to create a application which use a compress file (gzip). This gzip file contains the data(mean contains text files) which i want to display in application.

one case is that add this gZip file to application bundle. When the application start, it decompress the gZip file and read all text files . The number of text file is not fixed.
so if i add gZip file in application bundle, then it always show static data.

In other case, i add only text file which contains the path to gZip file. in this condition when application start, it read the text file and pick the gZip file path and decompress it programmatically. in this case i can change the path manually in text file. so when application start again, it picks new gZip file.

hope you understand. Please suggest
 
No I don't understand: why not just add the text files to the resources in your bundle.

Why bother with the complexity of the gzip solution, and the additional space required to store both the zipped version in your app and the uncompressed version that will have to end up in your sandboxed area on the filesystem (which I believe is limited to 2Gb per app).

Or are you downloading the gziped file from somewhere? i.e. not distributing it with the app?

Edit: this might be helpful...
 
Or are you downloading the gziped file from somewhere? i.e. not distributing it with the app?

Edit: this might be helpful...

yes sir,
i want to download the gziped file from some location. This gZiped files contains the application data( different text files).

in my application, i just want to decompress gZiped file and use extracted file in my application. i want to display data according to extracted text files.

so my question is that how can i decompress the gZiped file programmatically.

excuse me for my bad english
Thanks
 
Did you open an read the link I supplied?

sir,
first of all thanks for your support

i read the link supplied by you. its help me.

there are two question in my mind

1. what compress file type is supported by iPhone (like .Zip)?
2. what SDK i used? presently i use SDK 2.0


whether you do decomress a file programmatically in your previous projects. since link supplied by you, does not contains code snippet to decompress a file

thanks
 
sir,
first of all thanks for your support

i read the link supplied by you. its help me.

there are two question in my mind

1. what compress file type is supported by iPhone (like .Zip)?
2. what SDK i used? presently i use SDK 2.0


whether you do decomress a file programmatically in your previous projects. since link supplied by you, does not contains code snippet to decompress a file

thanks

I'm not about to provide code: either do the research and write it yourself or pay for someone to do it.

Clearly using Google is too much. I found this in under 20 seconds...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.