0 votes
584 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.6k 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 174 views
0 votes
1 answer 290 views
0 votes
1 answer 921 views
0 votes
1 answer 1.0k views
0 votes
0 answers 166 views
0 votes
1 answer 377 views
+1 vote
0 answers 128 views
0 votes
0 answers 100 views

613 questions

493 answers

91 comments

2.0k users

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
...