0

Is that possible to display images stored in database (in blob field) in a Primefaces datatable ? Or images should be stored in a local directory and in order to display these images in a datatable we use url ?

I want, if that is possible, to give me an example or a link to a tutorial to help me.

Thanks in advance

NiÑo
  • 133
  • 1
  • 3
  • 11
  • @Xtreme Biker: thanks for your reply. You're right, i changed my post, but, i want an example that explain to me how to do this, specially how to load images from datatabase an display it in datatable – NiÑo Aug 21 '13 at 07:48
  • 1
    OK, you're welcome. It's straightforward to achieve in case of having it in the server path (url). If you have it in DB you need to create a custom servlet to be able to access it. Check [this](http://stackoverflow.com/a/10161878/1199132) and [this](http://tutslink.blogspot.com.es/2012/04/jsf-displaying-images-from-database-in.html). – Aritz Aug 21 '13 at 07:57
  • possible duplicate of [Problems displaying database blob image in Primefaces graphicimage](http://stackoverflow.com/questions/10073905/problems-displaying-database-blob-image-in-primefaces-graphicimage) – BalusC Aug 21 '13 at 12:36

0 Answers0