I have been working on iOS development for 3weeks and counting.. I am trying to upload the image path from the local and send it to the webserver in order to save the memory of sending the images, I have tried getting the image path, but what i got is, the path which looks like this imagepath = assets-library://asset/asset.PNG?id=DD08F326-DD6D-48FB-9A52-7AD8063243A0&ext=PNG. or if I use the documentsDirectory, I am getting the path to the Documents of the modem(phone).
What I want is once the user upload the image, the imagePath should be displayed [like: Users/AAA/Media/...] along with the image name. Can this be done?
Any help is appreciated!!
This is the latest code I used to get the iamgePath
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
imageView.image = image;
NSURL *imgpath = [info objectForKey:@"UIImagePickerControllerReferenceURL"];
NSString *imagename = [imgpath lastPathComponent];
NSString* imagepath = [NSString stringWithFormat:@"%@", imgpath];