Re: Proper upload streaming? Not possible with WO!
Will Scheidegger <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the reply, Karl! This sounds interesting, even promising... except that this does still not explain why it takes 17 seconds until createRequest() is called and then less than a second to stream those 500+ KB of data over a 400 Kbits/second upstream connection. Still looking for more insight... -Will On 25.04.2006, at 16:22, Hsu wrote: >> >> "Because the request content is not displayed or read into memory, >> this page can be used to upload an arbitrarily large file." >> >> Hm... if that NSData object containing the whole request data is >> not in memory, where is it then? > > It's a subclass of NSData that wraps an inputstream, and provides > bytes "on-demand". > > There should be some documentation (somewhere) about which methods > will cause the entire stream to be read into memory. > > Karl > > -- > > Who said humans weren't complicated? > Cats. > > Homepage: > http://homepage.mac.com/khsu/index.html >