public List <AppData> HuellasTemplate() { List <AppData> TemLis = new List <AppData>(); DataTable DT = objDato.TodasHuellas(); foreach (DataRow Row in DT.Rows) { string[] Hu; Hu = Convert.ToString(Row[1]).Split('-'); Hu = Hu.Take(Hu.Length - 1).ToArray(); byte[] Hub = Array.ConvertAll(Hu, byte.Parse); Stream D = new MemoryStream(Hub); DPFP.Template Tem = new DPFP.Template(D); TemLis.Add(new AppData { Template = Tem, IDCliente = Convert.ToInt32(Row[0]) }); } return(TemLis); }
public DPFP.Template RegresarHuellaTemp() { string[] Hu; objDato.IDUsuario = IDUsuario; Hu = objDato.VeriHuella().Split('-'); Hu = Hu.Take(Hu.Length - 1).ToArray(); byte[] Hub = Array.ConvertAll(Hu, byte.Parse); /*int cont = 0; * foreach (string H in Hu) * { * Hub[cont] = Convert.ToByte(H); * cont++; * }*/ Stream D = new MemoryStream(Hub); DPFP.Template Tem = new DPFP.Template(D); return(Tem); }