Skip navigation.
 
mlRe: Size of remote file
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.

Related mailsAuthorDate
mlSize of remote file Tobias Bayer Nov 29, 10:07
mlRe: Size of remote file Andrew Farmer Nov 29, 22:20