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
Post a Comment