Customized Code For Profile Photo Is Not Working.
(Doc ID 1433339.1)
Last updated on MARCH 08, 2017
Applies to:Oracle WebCenter Portal - Version: 220.127.116.11.0
Information in this document applies to any platform.
One modified the getOriginalPhoto() method in SampleWebcenterSpacesExtention.jws > Profile Attributes > Application Sources > CustomProfileImpl.java. After deploying the code still it's fetching the photo from theold location, It's not using the new code. What could be the problem? Please find the code below :
* Override the photo
public byte getOriginalPhoto()
byte photo = null;
String profileEmployeeNumber = _profile.getEmployeeNumber();
InputStream in =
Thread.currentThread().getContextClassLoader().getResourceAsStream("/content/conn/UCM2/path/Contribution%20Folders/LADBS/Employee Photo" +
if (in != null)
ByteArrayOutputStream out = new ByteArrayOutputStream();
for (; ; )
int c = in.read();
if (c < 0)
photo = out.toByteArray();
catch (IOException ex)
catch (ProfileException e)
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
|This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.|