Forums de discussion

Image URL for the file saved using DLStoreUtil

thumbnail
vaseem bari, modifié il y a 10 années.

Image URL for the file saved using DLStoreUtil

Junior Member Publications: 86 Date d'inscription: 26/03/08 Publications récentes
Hi,
Liferay 6.1, Prime faces , tomcat .
I want to show a image in a page which is saved using DLStoreUtil.
Due to some requirement i cant use DLAppservice or DLfileentry.
How do I form the url so that i can use it in Image tag.
<img src="?????????????????" />

Vaseem bari
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: Image URL for the file saved using DLStoreUtil

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Since you are using JSF, I would recommend that you serve up the image data with a JSF2 ResourceHandler.

There is an example of how to serve up an image (a user portrait) in the primefaces3-users-portlet demo. Specifically, I would recommend that you look at UserPortraitResourceHandler.java