graphicimage

Load images from outside of webapps / webcontext / deploy folder using <h:graphicImage> or <img> tag

半城伤御伤魂 提交于 2019-11-25 22:23:36
问题 I need to display images which reside outside of deploy folder in web application using JSF <h:graphicimage> tag or HTML <img> tag. How can I achieve that? 回答1: To the point, it has to be accessible by a public URL. Thus, the <img src> must ultimately refer a http:// URI, not something like a file:// URI or so. Ultimately, the HTML source is executed at enduser's machine and images are downloaded individually by the webbrowser during parsing the HTML source. When the webbrowser encounters a