title: imageWithContentsOfFile Not Returning Image
body: <p>UIImage *image=[UIImage imageWithContentsOfFile:filePath];</p>
  
  <p>I have used this method a hundred times before and it used to always work, but now it just returns" Null", I googled and I tried with</p>
  
  <pre><code>            NSBundle *bundle = [NSBundle mainBundle];
              NSString *filePath = [bundle pathForResource:
                                     @"fileName" ofType:@"png"];
              UIImage *image=[UIImage imageWithContentsOfFile:filePath];
  </code></pre>
  
  <p>But its still not Working, 
  Also tried using</p>
  
  <p>UIImage *image=[UIImage imageWithData:[NSData dataWithContentsOfFile:filePath]];</p>
  
  <p>still get "Null",</p>
  
  <p>And I can't use the Method</p>
  
  <pre><code>  UIImage *image=[UIImage imageNamed:@"image.png"];
  </code></pre>
  
  <p>Since I am downloading the Images inside my Apps Document Directory inside a "tmp" folder and then using the path where I have downloaded them and then trying to access it, Hence I need this method "imageWithContentsOfFile:" to work desperately</p>
  
  <p>can somebody please help me out of this…Thanks for help in advance</p>