- How do I pass a zip file in xml format to an iPhone?
- How do I retrieve to the compressed file using objective C and xcode?
Asked
Active
Viewed 407 times
-1

Richard Povinelli
- 1,419
- 1
- 14
- 28

Nirav Jain
- 5,088
- 5
- 40
- 61
-
can u b more clear...which data want to pass the content is not necessary that is secondary.. – ajay Apr 26 '11 at 07:29
-
when i am parsing my xml i have to parse test.zip file also, so how can i parse this file?? – Nirav Jain Apr 26 '11 at 13:05
-
cant get you just explain me step by step you want.. – ajay Apr 26 '11 at 14:10
2 Answers
3
- Encode the zip's binary data (e.g. via Base64) and add to the XML data
- Transmit the XML to the iOS device (e.g. via
ASIHTTPRequest
) - Parse the XML to retreive the encoded zip data (e.g. via
NSXMLParser
, orlibxml2
etc.) - Decode the encoded zip data (again, with the same encoding method, e.g. Base64)
- Use Apple's pre-built zip library to decompress the decoded data

Community
- 1
- 1

Alex Reynolds
- 95,983
- 54
- 240
- 345
1
What do you want to do.. Pass an zipped xml file or want to pass zipped data to an xml file?
Here is the library for packing/unpacking the zip files

Inder Kumar Rathore
- 39,458
- 17
- 135
- 184