A simple class to download a stream to disk or to a memory block
Objective-C C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AQStreamDownloader.h Initial public release. Apr 26, 2010
AQStreamDownloader.m
LICENSE
README.textile

README.textile

AQStreamDownloader

Version 1.0 — 26 April 2010

By Jim Dovey

Introduction

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.

Dependencies

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.