0 votes
356 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.1k 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 69 views
0 votes
1 answer 167 views
0 votes
1 answer 619 views
0 votes
0 answers 79 views
0 votes
1 answer 197 views
0 votes
0 answers 44 views
+1 vote
0 answers 53 views

582 questions

482 answers

87 comments

1.7k users

Dosvak IBM BPM /BAW Products, Download Evaluation
Process & Performance Tools Process & Performance Tools
Code Analyzer Code Analyzer
UI Toolkit UI Toolkit
Integration Monitoring Integration Monitoring
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
...