public byte[] getRecord(String query, String[] expValues) throws SQLException, Exception { //expvalues is the column names i pass while calling a function byte tempResult =0 ; byte[] result = null; Connection con = openConnection(); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(query); int size = 0; int i = 0; // Loop through the result set while (rs.next()) { size++; for (i = 0; i < expValues.length; i++) { result = rs.getBytes(1); } } // Close the result set, statement and the connection rs.close(); stmt.close(); con.close(); return result; } // eof getRecordSet
sqle java.sql.SQLException: Unable to convert between java.lang.Integer and BINARY. Exception java.lang.NullPointerException
executeQuery()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)