Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ishan Sahore
User image in "My Account"
October 11, 2012 2:38 AM
Answer

Ishan Sahore

Rank: Junior Member

Posts: 56

Join Date: April 25, 2012

Recent Posts

Hi all,

I want to know where is the image stored in liferay's DB that a user uploads in "My Account" section, or the images that we upload in Documents and Media, or the ones in Web Content Display.
I am developing a portlet that picks and displays the logged in user's image in the portlet.

Any help is appreciated.

Thanks & Regards,
Ishan.
jaid shaik
RE: User image in "My Account"
October 11, 2012 3:17 AM
Answer

jaid shaik

Rank: Regular Member

Posts: 170

Join Date: October 7, 2010

Recent Posts

Hi Ishan,

1I want to know where is the image stored in liferay's DB that a user uploads in "My Account" section, or the images that we upload in Documents and Media, or the ones in Web Content Display.
2I am developing a portlet that picks and displays the logged in user's image in the portlet.


Documents and Media images will store in dlfileentry

If you want profile image check the below code as well as check this link
1long portraitId = user.getPortraitId();
2        Image image = ImageLocalServiceUtil.getImage(portraitId);




Thanks
Apoorva Prakash
RE: User image in "My Account"
October 11, 2012 4:33 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hope this link can help you.

Thanks and Regards,
Apoorva Prakash
Jitendra Rajput
RE: User image in "My Account"
October 11, 2012 6:03 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

Try with below snippet.

<img src="<%= user.getPortraitURL(themeDisplay) %>" width="50" height="51" alt="" />