title: How to get the local saved UIImage path to UIImage?
body: <p>I am saving my image by using below code ---  </p>
  
  <pre><code>#define DOCUMENTS_FOLDER [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]
  
  
  NSDate *now = [NSDate dateWithTimeIntervalSinceNow:0];
  NSString *caldate = [now description];
  
  
  NSString *filePath= [NSString stringWithFormat:@"%@/%@.jpg", DOCUMENTS_FOLDER,caldate];
  imageurl = [NSURL fileURLWithPath:filePath];
  dataImage = UIImagePNGRepresentation(myimage);
  [dataImage writeToFile:filePath atomically:YES];
  </code></pre>
  
  <p><strong>imageurl is printing like below</strong></p>
  
  <blockquote>
    <p>file://localhost/Users/varmab/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/E2EDF729-4684-465B-8BE3-2C0ACFA2EC03/Documents/2013-03-18%2012:02:31%20+0000.jpg</p>
  </blockquote>
  
  <p>Now, i want to show the saved image , i.e., image is stored in the above file path</p>
  
  <p>I tried the below codes:</p>
  
  <pre><code>//1st process:
  UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:imageurl]];
  
  //2nd process:
  NSURL *urlString =imageurl;
  NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation([UIImage imageWithData:[NSData dataWithContentsOfURL:urlString]])];
  UIImage *image = [UIImage imageWithData:imageData];
  
  //3rd process:
  NSData * imageData = [[NSData alloc] initWithContentsOfURL:imageurl ];
  self.testingImageView.image = [UIImage imageWithData: imageData];
  </code></pre>
  
  <p>Please guide me, am i doing any mistake?</p>