title: how to get the path of the image which is in iphone gallery
body: <p>i need to upload a image from iphone gallery ,but i am not getting the <strong>path</strong> of the picked image (using <strong>image picker</strong>)</p>
  
  <p>in the image picker delegate method i am doing the following</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
      [picker dismissModalViewControllerAnimated:YES];
      imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
  
      NSString *strImagePath = [info valueForKey:UIImagePickerControllerReferenceURL];
      NSString *strImagePath1 = [info valueForKey:UIImagePickerControllerMediaURL];
      NSLog(@"%@",strImagePath);
      NSLog(@"%@",strImagePath1);
      NSLog(@"%@",info);
  
  }
  </code></pre>
  
  <p>and the info dictionary contains following key values</p>
  
  <pre><code>{
      UIImagePickerControllerMediaType = "public.image";
      UIImagePickerControllerOriginalImage = "&lt;UIImage: 0x16adc0&gt;";
      UIImagePickerControllerReferenceURL = "assets-library://asset/asset.PNG?id=1000000153&amp;ext=PNG";
  }
  </code></pre>
  
  <p>i used the value for key UIImagePickerControllerReferenceURL as the image path to upload it to FTP but i couldnt upload the file, probably the path which i taking is incorrect.</p>
  
  <p><strong>can anybody help me out how can i take the actual path of the picked image using image picker</strong></p>