In a project I am working on I have showStudents.java that enables me to view all the students in the database in a jTable swing component. The jTable is correctly displayed except that the image is showing as
5 Debebe Gemesa 2020-02-07 Adama AB 0956852145 1 [B@522d8811
6 Samuel Gemeda 2020-02-05 Bahir Dar A+ 0986451278 1 [B@3330a9d5
The last column is supposed to be image column. In the database I have the following values for students table
6 Samuel Gemeda 2020-02-05 Bahir Dar A+ 0986451278 1 [BLOB - 32 B]
I have this method in my showStudents.java that enables me to view all the columns from my database.
public void showRecord(){
try {
stmt = conn.createStatement();
String sql = "SELECT * FROM STUDENT";
ResultSet rs = stmt.executeQuery(sql);
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
}
}