java - Display blob on JSP -


i have class fields (string, string, blob). on jsp want display obj in table like:

<c:foreach var = "p" items="${products}">  <img src="${p.image}" /> </c:foreach> 

how do it?

you have 2 options:

  • usually resources referenced in html page loaded asynchronously, i.e. browser first loads html page , loads images etc. referenced in html page. in case write servlet delivers image client. in case src attribute of img tag has contain path servlet.
  • the second option embed image base64 encoded src attribute described in post: embedding base64 images

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -