• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Size of remote file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Size of remote file


  • Subject: Re: Size of remote file
  • From: Andrew Farmer <email@hidden>
  • Date: Mon, 29 Nov 2004 13:20:06 -0800

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.

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Size of remote file (From: Tobias Bayer <email@hidden>)

  • Prev by Date: Re: iSight/Address Book Image Selection UI
  • Next by Date: Re: LSUIElement does not work as documented?
  • Previous by thread: Size of remote file
  • Next by thread: A view to act as a cell, or vice versa
  • Index(es):
    • Date
    • Thread