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?

here complete example ,

note: consider example reference understand way,


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -