public string CopyPhotoTo(string photoPath) { _dataBaseService = DependencyService.Get<IPhotoService> (); var imgData = new UIImage (photoPath).AsJPEG (); var ID = _dataBaseService.GetID (); var ExtensionsFile = ".jpg"; string jpgFilename = System.IO.Path.Combine (GetPath (), ID + ExtensionsFile); NSError err = null; if (imgData.Save (jpgFilename, false, out err)) { Console.WriteLine ("saved as " + jpgFilename); } else { Console.WriteLine ("NOT saved as " + jpgFilename + " because" + err.LocalizedDescription); } return ID + ExtensionsFile; }