Change this to byte[] second = rs.getBytes(1)