Convert an offline fingerprint template into a Biokey fingerprint template. The only difference
between this function and FPTempConvertStr is the data format.
Offline fingerprint template to be converted
Converted Biokey fingerprint template
CSize of the converted Biokey fingerprint template
Return True if it is successful, or return False.
FPTempConvertStr, FPTempConvertNew, FPTempConvertNewStr
/// <summary> /// Convert an offline fingerprint template into a Biokey fingerprint template.The only difference /// between this function and FPTempConvertStr is the data format. /// </summary> /// <param name="TmpData1">Offline fingerprint template to be converted </param> /// <param name="TmpData2">Converted Biokey fingerprint template</param> /// <param name="Size">Size of the converted Biokey fingerprint template</param> /// <param name="IP"> Ip of device </param> /// <param name="Port"> Port of Device </param> private void FPTempConvert(byte TmpData1, byte TmpData2, int Size, string IP = "10.0.0.44", int Port = 4370) { //Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); axCZKEM1.Connect_Net(IP, Port); int idwErrorCode = 0; if (axCZKEM1.FPTempConvert(TmpData1, TmpData2, ref Size)) { MessageBox.Show("FPTempConvert!", "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); } }
''' <summary> ''' Convert an offline fingerprint template into a Biokey fingerprint template.The only difference ''' between this function and FPTempConvertStr is the data format. ''' </summary> ''' <param name="TmpData1">Offline fingerprint template to be converted </param> ''' <param name="TmpData2">Converted Biokey fingerprint template</param> ''' <param name="Size">Size of the converted Biokey fingerprint template</param> ''' <param name="IP"> Ip of device </param> ''' <param name="Port"> Port of Device </param> Private Sub FPTempConvert(ByVal TmpData1 As Byte, ByVal TmpData2 As Byte, ByVal Size As Integer, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370) 'Create Standalone SDK class dynamicly. Dim axCZKEM1 As zkemkeeper.CZKEMClass = New zkemkeeper.CZKEMClass() axCZKEM1.Connect_Net(IP, Port) Dim idwErrorCode As Integer = 0 If axCZKEM1.FPTempConvert(TmpData1, TmpData2, Size) Then MessageBox.Show("FPTempConvert!", "Success") Else axCZKEM1.GetLastError(idwErrorCode) MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error") End If End Sub