This question already has an answer here:
I have a table called userimages whose columns are user1,user2,user3 etc, and there are images under every user. Now using servlets I retrieved the images of a specific user by doing the below basic stuff.
PreparedStatement ps=con.prepareStatement("select user1 from userfiles");
ResultSet rs = ps.executeQuery();
Now how do I display the "rs" ResultSet on my web page? When I try to print it's giving me the address of rs, i.e com.mysql.jdbc.JDBC42ResultSet@1d588359.
How should I convert rs into an image and display it onto the browser?
Aucun commentaire:
Enregistrer un commentaire