Re: streamed HTTP POSTs problem
Re: streamed HTTP POSTs problem
- Subject: Re: streamed HTTP POSTs problem
- From: Gary Fielke <email@hidden>
- Date: Fri, 8 May 2009 15:35:57 +0930
I do vaguely remember looking into that some time ago but messages such as http://lists.apple.com/archives/Macnetworkprog/2007/May/msg00051.html and the followups kind of put me off (suggesting that subclassing NSInputStream for this sort of thing isn't safe). Maybe it's changed since then.
I do feel I'm only one step away (one tidbit of advice!) from getting the CF streams to work. Thanks for your comments. Gary On 08/05/2009, at 2:59 PM, Jens Alfke wrote: On May 7, 2009, at 9:20 PM, Gary Fielke wrote: I understand using CF is the only way to get upload progress - CFReadStreamCopyProperty(httpReqStream, kCFStreamPropertyHTTPRequestBytesWrittenCount);
You can set the HTTPBodyStream property of an NSMutableURLRequest — attach it to your own NSInputStream subclass that wraps an existing stream (on a file or an NSData or whatever) while keeping track of the number of bytes that have been read.
—Jens
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden