Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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! :(

C#
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 !!
Posted

1 solution

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 ?
 
Share this answer
 
Comments
legend_123 20-Feb-14 0:06am    
Actually i am a student so my supervisor is not allowing for SDK :(
george4986 20-Feb-14 2:28am    
good luck legend_123 ;-)
if u found any solution please post here or in the following link
http://www.codeproject.com/Questions/708206/Retrieving-data-from-Biometric-Fingerprint-Attenda
Garth J Lancaster 20-Feb-14 2:29am    
well, then, your supervisor is being a bit unrealistic, expecting you to be able to interface to the device by going to native USB way with no documentation - if I were forced to do this, I'd a) be talking to the hardware vendor, b) being paid big $$$

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900