title: Load image from url in iPhone, only if small
body: <p>I'm using <strong>initWithContentsOfURL</strong> of <strong>NSData</strong> to load an image from a url. However, I don't know the size of the image beforehand, and I would like to the connection to stop or fail if the response exceeds a certain size.</p>
  
  <p>Is there a way to do this in <strong>iPhone</strong> 3.0?</p>
  
  <p>Thanks in advance.</p>