[英]How can i show captured fingerprint in web application using asp.net C#
i am trying to integrate Fingerprint scanner with my asp.net Web Application..but iam unable to use the picture box.. 我正在尝试将指纹扫描仪与我的asp.net Web应用程序集成。但是我无法使用图片框。
private void btnInitialize_Click(object sender, EventArgs e)
{
try
{
bmp = null;
pictCaptureImg.Image= bmp;
if (!csd200Obj.isDeviceConnected())
{
MessageBox.Show("Please Connect Device...");
return;
}
if (!csd200Obj.isDeviceInitialized())
{
int nRc = csd200Obj.initializeScanner();
if (nRc != CSD200APICodes.SUCCESS)
{
MessageBox.Show("3M Cogent CSD200 scanner initialization failed. Error Code: " + nRc, "3M Cogent CSD200");
return;
}
}
MessageBox.Show("Initialization Successful", "3M Cogent CSD200");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Iam getting error at this line pictCaptureImg.Image= bmp; 我在此行上出现错误pictCaptureImg.Image = bmp; because mine is a web application.Can u please let me know how can i use picture box in asp.net web application and how can i show my captured fingerprints there? 因为我的是一个Web应用程序。您能告诉我如何在asp.net Web应用程序中使用图片框,如何在其中显示捕获的指纹吗?
You need to use client-side code to access fingerprint device. 您需要使用客户端代码来访问指纹设备。 Also you must check what software interface libraries your device provides with it. 另外,您必须检查设备随附的软件接口库。 For example, if it comes with an ActiveX, you should install the ActiveX and use it in your web client code javascript. 例如,如果它带有ActiveX,则应安装ActiveX并在Web客户端代码javascript中使用它。 If it provides plugins for specific browsers, you should use that plugins. 如果它提供了特定浏览器的插件,则应使用该插件。 Another option (but with security risks) is to use java applet. 另一种选择(但存在安全风险)是使用Java applet。 Please note that accessing hardware from inside web client is restricted by browsers because of security issues. 请注意,由于安全问题,浏览器限制从Web客户端内部访问硬件。 Using different technologies has their restrictions and benefits: 使用不同的技术有其局限性和优势:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.