0

I am working on finger and face identify machines which use zkemKeeper.dll class library. It only works on desktop application. I have synchronized faces between the devices on desktop. I need to invoke that method in ASP.NET button click. Kindly suggest me what I have to do in this scenario?

2
  • 1
    Read this and that Commented Jun 13, 2015 at 8:39
  • Listen on a port in your desktop application by using Tcp Listener. Send http request to that application when you click ASP.Net button. Commented Jun 15, 2015 at 11:45

1 Answer 1

1
public zkemkeeper.CZKEM zkemKeeper = new zkemkeeper.CZKEM();//initializing dll

private bool bIsConnected = false;//the boolean value identifies whether the device is connected
//Initializing bisconnected to connect the device
bool bIsConnected = zkemKeeper.Connect_Net(txtip.Text, Convert.ToInt32(txtport.Text));
 private void btnDownLoadFace_Click(object sender, EventArgs e)
    {
    string sUserID = "";
    string sName = "";
    string sPassword = "";
    int iPrivilege = 0;
    bool bEnabled = false;
    int iFaceIndex = 50;//the only possible parameter value
    string sTmpData = "";
    int iLength = 0;
    zkemKeeper.EnableDevice(iMachineNumber, false);
        zkemKeeper.ReadAllUserID(iMachineNumber);//read all the user information to the memory

        while (zkemKeeper.SSR_GetAllUserInfo(iMachineNumber, out sUserID, out sName, out sPassword, out iPrivilege, out bEnabled))//get all the users' information from the memory
        {
            if (zkemKeeper.GetUserFaceStr(iMachineNumber, sUserID, iFaceIndex, ref sTmpData, ref iLength))//get the face templates from the memory
            {
                //save whatever data you want for eg:
               ListViewItem list = new ListViewItem();
                list.Text = sUserID;
                list.SubItems.Add(sName);
                list.SubItems.Add(sPassword);
                list.SubItems.Add(iPrivilege.ToString());
                list.SubItems.Add(iFaceIndex.ToString());
                list.SubItems.Add(sTmpData);
                list.SubItems.Add(iLength.ToString());
                if (bEnabled == true)
                {
                    list.SubItems.Add("true");
                }
                else
                {
                    list.SubItems.Add("false");
                }
                lvFace.Items.Add(list);//lv Face is a List View 
            }
        }
 zkemKeeper.EnableDevice(iMachineNumber, true);
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.