Show an InputStream as dynamic image in JSF
问题 How can we embed and show an InputStream as dynamic image in JSF 2.0 with OmniFaces? 回答1: OmniFaces does not offer any utility for this — yet. If the image files are located on the disk file system, then you need to create a virtual context in the servletcontainer configuration so that they can be accessed by a normal URL. See also Load images from outside of webapps / webcontext / deploy folder using <h:graphicImage> or <img> tag. If the image files are stored in the DB, then you need to