Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Java
try {
String a="1000";
            Class.forName("com.mysql.jdbc.Driver");
            Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/fpt", "root", "root");
            String select_blob = "select imag_save.img from imag_save inner join registration_stud on registration_stud.fk_f_name=imag_save.f_name where registration_stud.registration_no='" + a + "'";
          
            ResultSet rs = null;
            java.sql.Statement st = conn.createStatement();
            rs = st.executeQuery(select_blob);
            while (rs.next()) {

                byte[] bytes = rs.getBytes("img");
                System.out.println("bytes" + bytes);
                DPFPTemplate t = DPFPGlobal.getTemplateFactory().createTemplate();
                t.deserialize(bytes);
                setTemplate(t);

            }
        } catch (Exception e) {
            System.out.println("exception" + e.getMessage());
        }

Here I Input A register number to select the BLob data From Database.Then It Works Well.But The problem Is how Can i Search The Blob data without Entering Any Inputs(register number).I mean Only fingerprint data is needed to Login No need of register number...
Posted
Updated 18-Feb-13 3:04am
v3
Comments
Manfred Rudolf Bihy 18-Feb-13 9:43am    
It is not clear from the short problem description what your goal is in this endeavour.
Please feel free to elaborate a bit on what you are trying to do here.

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