如何在不使用SDK的情况下从指纹扫描仪中读取和保存数据 [英] how to read and save the data from finger print scanner without using SDK`s
本文介绍了如何在不使用SDK的情况下从指纹扫描仪中读取和保存数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在阅读和保存我的futronic设备中的数据,实际上我想在sql server的数据库中保存数据...请帮忙! :(
I am stuck in reading and saving data from my futronic device, Actually i want to save data in sql server`s database... please help! :(
private void button1_Click(object sender, EventArgs e)
{
//Insert the file into database
SqlConnection cn = new SqlConnection(@"Data Source=SAZ-PC\SQLEXPRESS;Initial Catalog=Voted;Integrated Security=True");
SqlCommand cmd = new SqlCommand("INSERT INTO tblUser VALUES(@ID_NUMBER, @FIRSTNAME, @LASTNAME, @FINGERPRINT, @DATE_ADDED, @DATE_MODIFIED)", cn);
cmd.Parameters.Add("ID_NUMBER", SqlDbType.NVarChar).Value = textBox1.Text;
cmd.Parameters.Add("FIRSTNAME", SqlDbType.NVarChar).Value = textBox2.Text;
cmd.Parameters.Add("LASTNAME", SqlDbType.NVarChar).Value = textBox3.Text;
cmd.Parameters.Add("FINGERPRINT", SqlDbType.Image).Value = bytes;
cmd.Parameters.Add("DATE_ADDED", SqlDbType.DateTime).Value = DateTime.Now;
cmd.Parameters.Add("DATE_MODIFIED", SqlDbType.DateTime).Value = DateTime.Now;
cn.Open();
cmd.ExecuteNonQuery();
cn.Close();
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
MessageBox.Show("Successfully Registered");
}
如何读取该字段的字节!!
how to read the bytes foe this field !!
推荐答案
你可能不得不使用libusbdotnet或winusbnet,但没有任何协议文档,这可能是一项长期艰巨的任务,很少/没有奖励
您也可以使用USB - 串行桥并将设备视为串行设备,但不知道您使用的是哪种型号,这是推测
为什么不直接使用SDK?
you would probably have to use either libusbdotnet or winusbnet, but without any documentation of the protocol it could be a long hard task for little/no reward
you might also be able to use a usb - serial bridge and treat the device as a serial device, but without knowing what model you are using, this is speculation
Why not just use the SDK ?
这篇关于如何在不使用SDK的情况下从指纹扫描仪中读取和保存数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文