what is the compressed file format for iPhone

Discussion in 'iOS Programming' started by rupesh.swami, Sep 25, 2009.

  1. rupesh.swami macrumors newbie

    Joined:
    Mar 9, 2009
    #1
    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
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    I don't think there is one. Applications are delivered as signed bundles as described in the documentation.
     
  3. rupesh.swami thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #3
    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.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    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?
     
  5. rupesh.swami thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #6

    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
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    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...
     
  7. rupesh.swami thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #8
    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
     
  8. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #9
    Did you open an read the link I supplied?
     
  9. rupesh.swami thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #10
    sir,
    i am really sorry.
    i don't fully concentrate on you post. i miss the link supplied by you. Now first i read the link and after that reply you.

    thanks for your support
     
  10. rupesh.swami thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #11
    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
     
  11. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #12
    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...
     
  12. rupesh.swami thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #13
    sorry for my too much expactation.
     

Share This Page