Good day friends, I was able to capture and save a user fingerprint to MySQL database using digital persona sdk in java. The fingerprint is stored as bytes. Normally I'm able to convert ordinary picture from bytes to image and set it as icon to jLabel using this code
java.sql.Blob blob = rs.getBlob("profile");//get saved image
InputStream in = blob.getBinaryStream();
BufferedImage image = ImageIO.read(in);
if (image != null) {
ImageIcon icon = new ImageIcon(image);
profilepic.setIcon(icon);
}
but this doesn't seem to work for saved fingerprints. Any suggestions please?