After user choose image from the iPhone library with UIImagePickerController, I want to upload it to my server using ASIHTTPRequest library.
Save the photo in Document directory and use that url to upload.For example
NSString *jpgPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Test.jpg"];
[UIImageJPEGRepresentation(img, 1.0) writeToFile:jpgPath atomically:YES];
upload this image as [request setFile:jpgPath forKey:@"image"];