private void CrearImagenEmpleado(string ID) { try { Usuario DatosAux = new Usuario { IDEmpleado = ID, Conexion = Comun.Conexion }; Usuario_Negocio UN = new Usuario_Negocio(); UN.ObtenerHuellaDigitalXIDEmpleado(DatosAux); if (DatosAux.Completado) { if (DatosAux.BufferHuella.Length > 0) { System.IO.MemoryStream ms = new System.IO.MemoryStream(DatosAux.BufferHuella); Image.FromStream(ms).Save(Path.Combine(System.Windows.Forms.Application.StartupPath, @"Resources\Huella\" + this.DatosEmpleado.IDEmpleado + ".png")); } if (File.Exists(Path.Combine(System.Windows.Forms.Application.StartupPath, @"Resources\Huella\" + this.DatosEmpleado.IDEmpleado + ".png"))) { this.ImgHuella.ImageLocation = Path.Combine(System.Windows.Forms.Application.StartupPath, @"Resources\Huella\" + this.DatosEmpleado.IDEmpleado + ".png"); } } } catch (Exception ex) { throw ex; } }