java - How to retrieve images from database and place on JSP? -
this question has answer here:
i have jsp page , should images database , should display on 1 table. resultset object 'rs' pointing images. code this:
string query = "select image stock"; rst = stmt.executequery(query); while(rst.next()) <% <td><img height="89" src=<%rst.getstring(1)%></td> %> }
i know, getstring not work blob type. used getbinarystream(), not succeed. idea?
note: consider example reference understand way,
Comments
Post a Comment