0 votes
1.2k views
in Coach Views by

2 Answers

0 votes
by
edited by anonymous
 
Best answer

I tested it out it works here is the twx for 8.5.5 version of this sample https://bpm.tips/?qa=blob&qa_blobid=15405832221338821524

slight correction to above code

tw.local.imagehtml = "<img alt='Embedded Image' src='data:image/png;base64," + tw.local.htmlResult + " ' />"
by (16.3k points)
A more advanced version of this is included at the following topic https://bpm.tips/794/what-is-a-coe-enterprise-identity-toolkit-why-is-it-needed?show=795#a795

that one uses a coach view and makes a REST API call using security context of the current logged in user and thus a login username and password is not needed also its a standalone coach view
0 votes
by
edited by anonymous
There is a REST API call to Retrieves a user's avatar or profile image. The retrieved image is a base64 encoded string packaged in a JSON structure. Use /avatar/{userNameOrID} to retrieve any user's avatar or use /avatar/current for the avatar of current logged in user.

GET /rest/bpm/wle/v1/avatar/{userNameOrID}

Then in custom html you can embed the image data using following syntax

<img src="data:image/png;base64,iVBORw0KGgoAAAANS..." />

This is based on possibility we will post a working example to test how it actually works.

Related questions

0 votes
0 answers 515 views
0 votes
1 answer 627 views
0 votes
1 answer 1.6k views
0 votes
1 answer 2.2k views
0 votes
0 answers 2.7k views
0 votes
0 answers 504 views
0 votes
1 answer 895 views
+1 vote
0 answers 709 views

635 questions

495 answers

98 comments

3.0k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...