The project I'm working on (iPhone / Obj-C) requires me to receive a large file (via an HTTP message) and process it. The server will return some XML data encoded in BASE64 format, gzipped XML data. i.e.: SERVER → XML → BASE64 → GZIP → XML → My Model
The amount of data will vary, but they tell me that the final XML will be around 5 MB.
I would like to unpack, decode and analyze the data as it arrives.
I am looking for tips / pointers. (Ideally, there is published code there, but I have not seen any "thread-friendly" examples in my search.)
Will I end up subclassing NSStream?
The ideal solution will work for devices running iOS 3.2 and later.
Thank!
source
share