Version 1.0 — 26 April 2010
By Jim Dovey
This is a simple class which will download anything arriving from a given NSInputStream (or CFReadStream, CFHTTPReadStreamRef, CFFTPStreamRef, etc.) to a file or to a block of memory. You can specify an output file path, or you can let the class choose one for you.
The temp-file support in this class makes use of an NSFileManager class I wrote a while back, available as part of AQToolkit. Look in the TempFiles folder for the relevant class, or replace with a simple NSTemporaryDirectory() wrapper of your own.