FROM : Andrew Farmer
DATE : Mon Nov 29 22:20:06 2004
On 29 Nov 2004, at 01:07, Tobias Bayer wrote:
> I am downloading a file with NSURL. Is there a possibility to get the
> size of the remote file in bytes before actually downloading it?
Sometimes, but not always.
Delegate method:
> - (void) download: (NSURLDownload *) download didReceiveResponse:
> (NSURLResponse *) response {
> ... [response expectedContentLength] ...
> }
Note that not all servers will return a Content-Length.
DATE : Mon Nov 29 22:20:06 2004
On 29 Nov 2004, at 01:07, Tobias Bayer wrote:
> I am downloading a file with NSURL. Is there a possibility to get the
> size of the remote file in bytes before actually downloading it?
Sometimes, but not always.
Delegate method:
> - (void) download: (NSURLDownload *) download didReceiveResponse:
> (NSURLResponse *) response {
> ... [response expectedContentLength] ...
> }
Note that not all servers will return a Content-Length.
| Related mails | Author | Date |
|---|---|---|
| Tobias Bayer | Nov 29, 10:07 | |
| Andrew Farmer | Nov 29, 22:20 |






Cocoa mail archive

