title: How to convert video (in gallery) to NSData? in Swift
body: <p>I just haven't "info" in Swift imagePickerController so I don't know how get url and convert it to data to send to web-service. </p>
  
  <pre><code>func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]) {
  
    var videoDataURL = info[UIImagePickerControllerMediaURL] as! NSURL!
    var videoFileURL = videoDataURL.filePathURL
    var video = NSData.dataWithContentsOfMappedFile("\(videoDataURL)")
  }
  </code></pre>