本文介绍了如何匹配数据库中的指纹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我现在能够使用此代码将指纹直接保存到数据库...
i now able to save the fingerprint directly to database using this code...
Dim fingerprintData As MemoryStream = New MemoryStream
Template.Serialize(fingerprintData)
fingerprintData.Position = 0
Dim br As BinaryReader = New BinaryReader(fingerprintData)
Dim bytes() As Byte = br.ReadBytes(CType(fingerprintData.Length, Int32))
Dim cn As SqlConnection = New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=dataBEST;Integrated Security=True;Pooling=False")
Dim cmd As SqlCommand = New SqlCommand("INSERT INTO fininger_table VALUES(@FIRSTNAME, @LASTNAME, @FINGERPRINT)", cn)
cmd.Parameters.Add("FIRSTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxFname.Text
cmd.Parameters.Add("LASTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxLname.Text
cmd.Parameters.Add("FINGERPRINT", SqlDbType.Image).Value = bytes
cn.Open()
cmd.ExecuteNonQuery()
cn.Close()
现在?如何检索该指纹并与用户匹配?顺便提一下我的设备是DIGITAL PERSONA..tnx提前
now ? how to retrieve that fingerprint and matches to the user ? btw my device is DIGITAL PERSONA..tnx in advance
推荐答案
这篇关于如何匹配数据库中的指纹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!