title: want to save finger print image in database and also want to retrieve the same image
body: <p>This is my code i saved finger print image from picturebox to a folder and then want to save in binary format .after that when user input their finger print from bio metric scanner verify option will check the finger print image with saved image in database.but i cannot understand how to save my image and how to retrieve ?
  please help me if there is any mistake .</p>
  
  <pre><code>         string fname = ID.Text + ".jpg";
  
       string folder="C:/Users/SATYASHANTI/Desktop/ARMSPROJECT/rupak/personal"; 
         string pathstring = System.IO.Path.Combine(folder, fname);
         Image a = picFinger.Image;
         a.Save(pathstring);
  
  
          string imglog = "";
          byte[] img = null;
          FileStream fs = new FileStream(imglog, FileMode.Open, FileAccess.Read);
          BinaryReader br = new BinaryReader(fs);
          img= br.ReadBytes((int)fs.Length);
          cmd.CommandText = "insert into finger_check(emp_uniqueID,leftThum) values('"+ ID_combobox.Text+"',@leftThum)";
          cmd.Parameters.Add(new SqlParameter("@leftThum",img));
          cmd.Connection = con;
  
          con.Open();
          cmd.ExecuteNonQuery();
  
          ID_combobox.Text = string.Empty;
          picFinger.Image = null;
  </code></pre>