EncodeTemplate

Definition

Usage

Transfer the Variant template Asour used by the control into the template string Adest, which is BASE64 formatted.

 

Ejemplo

C#

/// <summary>
        /// Use after connect and Enroll
        /// </summary>
        /// <param name="pFPEngineVersion">Version of ZKfinger</param>
        private string EncodeTemplate_ZkFinger(string pFPEngineVersion = "10")
        {
        string ret = "";
        string sRegTemplate = axZKFPEngX1.GetTemplateAsStringEx(pFPEngineVersion);
        object pTemplate;
            pTemplate = axZKFPEngX1.DecodeTemplate1(sRegTemplate);
            axZKFPEngX1.EncodeTemplate(pTemplate, ref ret);
        return ret;
        }

VB

        ''' <summary>
''' Use after connect and Enroll
''' </summary>
''' <param name="pFPEngineVersion">Version of ZKfinger</param>
Private Function EncodeTemplate_ZkFinger(Optional pFPEngineVersion As String = "10") As String
        Dim ret As String = ""
        Dim sRegTemplate As String = axZKFPEngX1.GetTemplateAsStringEx(pFPEngineVersion)
        Dim pTemplate As Object
	pTemplate = axZKFPEngX1.DecodeTemplate1(sRegTemplate)
	axZKFPEngX1.EncodeTemplate(pTemplate, ret)
        Return ret
End Function