How can I use an image from a database as a CSS background-image? I can get an image from the resource library (file), but not the DB.
<h:outputStylesheet>
   body {
      background-image:url("#{resource[imageBean.getImage().getUrl()]}"); 
   }
</h:outputStylesheet>
resource[imageBean.getImage().getUrl()
Is there a way I can get the URL of the image that is in the imageBean?
I display DB images using an application scoped bean: Displaying images from MySQL database in JSF datatable
 
     
    