How to retrieve User profile picture Liferay 6.2

1.7k Views Asked by At

For 6.1 there are solutions available to retrieve user profile pic like in this post, but how to get portrait image in Liferay 6.2?

1

There are 1 best solutions below

0
On BEST ANSWER

Earlier we required to concate some strings to create src, but now Liferay API provide the method i.e.

<img src="<%=themeDisplay.getUser().getPortraitURL(themeDisplay)%>" >

Thanks.