byte[] _img_ = Convert.FromBase64String(row["finger"].ToString());
MemoryStream ms = new MemoryStream(_img_);
DPFP.Template template = new DPFP.Template();
template.DeSerialize(ms);
DPFP.FeatureSet features = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Verification);
DPFP.Verification.Verification.Result result = new DPFP.Verification.Verification.Result();
Verificator.Verify(features, template, ref result);
у меня возникла ошибка Уровень исключений: «System.FormatException» в mscorlib.dll
//*** это мой скрипт кодирования *** [code]MemoryStream fingerprintData = new MemoryStream(); enrollment.Template.Serialize(fingerprintData); fingerprintData.Position = 0; BinaryReader reader = new BinaryReader(fingerprintData); byte[] bytes = reader.ReadBytes((Int32)fingerprintData.Length); string base64String = Convert.ToBase64String(bytes); [/code] **** но когда я пытаюсь расшифровать ***** [code]byte[] _img_ = Convert.FromBase64String(row["finger"].ToString()); MemoryStream ms = new MemoryStream(_img_); DPFP.Template template = new DPFP.Template(); template.DeSerialize(ms);
DPFP.FeatureSet features = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Verification); DPFP.Verification.Verification.Result result = new DPFP.Verification.Verification.Result(); Verificator.Verify(features, template, ref result);
[/code] у меня возникла ошибка [b]Уровень исключений: «System.FormatException» в mscorlib.dll[/b]