How to do HTTP POST for images/videos picked from UIImagePickerControllerusing setHTTPBodyStream: of NSMutableURLRequest? I mean what is the best way to upload file from asset library in full quality, right from the file system (drive)? I hoped for creating inputStream for setHTTPBodyStream: with URL from UIImagePickerControllerReferenceURL but it doesn't work, system can't make inputStream for this URL...
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
NSURL *URL = [info objectForKey:UIImagePickerControllerReferenceURL];
NSInputStream *inputStream = [NSInputStream inputStreamWithURL:URL]; // here I get just nil...
...
[URLRequest setHTTPBodyStream:inputStream];
...