-1
  • 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?
Richard Povinelli
  • 1,389
  • 1
  • 12
  • 28
Nirav Jain
  • 5,018
  • 5
  • 36
  • 60

2 Answers2

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, or libxml2 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
  • 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