ive seen all the post related to my problem.. but i have different code .. i've searching for the answer for almost 2weeks now .. but no luck .. this is my code i dont know what's happening .. it keeps prompting Verification Failure .. i dont know whats
the problem in my code .. the bolded line's where i guess the problem occurs .. can someone kindly help me to fix this :( im using vb.net 2010 as my front and MySql as my back-end.. im using DigitalPersona 4000B
Sub OnComplete(ByVal Control As Object, ByVal FeatureSet As DPFP.FeatureSet, ByRef EventHandlerStatus As DPFP.Gui.EventHandlerStatus) Handles VerificationControl.OnComplete Dim con As New MySqlConnection("Server = localhost; Username= root; Password =; Database = fesdata") Dim cmd As New MySqlCommand("SELECT * FROM empdata", con) con.Open() Dim fpreader As MySqlDataReader = cmd.ExecuteReader Dim byteTemplate As Byte() Dim memStreamTemplate As MemoryStream Dim ver As New DPFP.Verification.Verification() Dim res As New DPFP.Verification.Verification.Result() If fpreader.HasRows Then While fpreader.Read byteTemplate = fpreader.Item("Fingerprint") memStreamTemplate = New MemoryStream(byteTemplate) Dim templa8 As DPFP.Template = New DPFP.Template() templa8.DeSerialize(memStreamTemplate) If Not FeatureSet Is Nothing Then ver.Verify(FeatureSet, templa8, res) If res.Verified Then Call SEARCH_EMPLOYEE() End If End If End While Else MsgBox("Unknown Employee!") End If fpreader.Close() End Sub