title: iPhone - NSData from local file's URL
body: <p>I have a <code>NSURL</code> object which gives me the path of a local file (in documents folder). I want to populate an <code>NSData</code> object with the contents of this file. Tried using <code>dataWithContentsOfURL:</code> but this fails. I know the file exists because the iPhone <code>SDK</code> returns the path.</p>
  
  <p>Can someone please tell me how I can get an <code>NSData</code> object from the <code>URL</code> of a local file?</p>
  
  <p>Thanks.</p>