-1

Iam trying to POST a video either recorded or chosen from the Library to server. This is the code I use to get video in the form of NSData

NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL];
NSData *videoData = [NSData dataWithContentsOfURL:videoURL];

Now , I need to encode it using base64 and POST. But when I POST, the server receives no video. Any guidance would be great. Thankyou

1 Answers1

0

Also, base64 related methods are included in iOS7. If your deploy target is below iOS 7, try this

Here's Post Request

Community
  • 1
  • 1
Ryan
  • 4,799
  • 1
  • 29
  • 56