- 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 404 times
-1
Richard Povinelli
- 1,389
- 1
- 12
- 28
Nirav Jain
- 5,018
- 5
- 36
- 60
-
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, orlibxml2etc.) - 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
- 94,180
- 52
- 233
- 338
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
- 38,350
- 17
- 126
- 179