开发者

Transmit compressed file as xml to an iPhone application

    开发者_JAVA技巧
  • 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?


  • 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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜