Hi, I have a small code where I get a video of the phone's reel to code, and now I need to transform that video to the Data class so that if I can send it for a Rest service, does anyone know any way?
var imagePicker = UIImagePickerController()
private func cargar() {
imagePicker.delegate = self
imagePicker.sourceType = UIImagePickerControllerSourceType.photoLibrary
imagePicker.mediaTypes = ["public.movie"]
self.present(imagePicker, animated: true, completion: {
})
}