如何匹配数据库中的指纹? [英] how to match a fingerprint from database?

查看:181
本文介绍了如何匹配数据库中的指纹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在能够使用此代码将指纹直接保存到数据库...



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

推荐答案

检查来自这里 [ ^ ]可以为您提供帮助。
Check if answers from here[^] can help you.


这篇关于如何匹配数据库中的指纹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆