Dim cn As New SqlConnection(ConnectString()) cn.Open() dim bytes as Byte() sqlCommand.CommandText = "Select template from usertbl where username='" + registration.txtusername.Text + "'" sqlCommand.CommandType = CommandType.Text sqlCommand.Connection = cn Dim lrd As SqlDataReader = sqlCommand.ExecuteReader() Dim usr While lrd.Read() usr = lrd("template") End While bytes = Nothing bytes = usr template = New DPFP.Template() template.DeSerialize(usr) 'Perform match matcher.Verify(FeatureSet, template, matchResult) If matchResult.Verified Then EventHandlerStatus = Gui.EventHandlerStatus.Success MsgBox("Verified!") Me.Hide() registration.Show() Else EventHandlerStatus = Gui.EventHandlerStatus.Failure MsgBox("Please Try Again!") End If
template
NVarChar(n)
usr
bytes
DPFP.Template
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)