Show operator image from corporate directory
We have a requirement where the operator image on the operator profile has to be fetched from the corporate directory system. This system exposes the image in 2 ways
- Using a REST API which sends the image as a stream.
- URL which can be accessed with in the intranet using which the image can be loaded using a control
Pega out of the box, shows this operator image as a avatar on the profile page, assignment headers, pulse and many places using pxOperatorImage & pzDisplayOperatorImage controls. pxOperatorImage takes the image on the from the operator profile to show this . So the questions we are facing are
- Is there a way that the image can be loaded using the URL provided in option 2?
- Or should the image has to be fetched as a base64encoded stream object using the rest API and save the stream as the operator image?
If the rest API is called, then a service call should be made during every new user session to fetch this information. Is there any configurable item with in the pega platform where we could use the URL and replace the operator Image with the one in the corporate directory.
We do not want to customize the control as these are final rules and would make the upgrades expensive.
We are on pega 8.4