Skip to main content

PowerApps CDS Uploading and Viewing Images

Code Function snippets used

Concatenate("data:" ,ThisItem.mimetype,";base64, ",ThisItem.documentbody)

"<div> <img src=’data:image/png;base64, {b64 here}}’ /> <h1>John Doe</h1> <p class=’title’>CEO & Founder, Example</p>

</div>"

"<div> <img src=’data:image/png;base64, "& vFirstImage.Document &"’ /> <h1>" & Text( Concatenate(gRegs.Selected.Firstname," ",gRegs.Selected.Lastname) &"</h1> <p class=’title’>"& Concatenate("Job ",gRegs.Selected.Jobtitle)& "</p>

</div>"

Analyze Image – Cognitive Services PowerApp

Simple BYOUI app showing the Analyze Image Api in Cognitive Services.

You’ll need a onedrive for business connector and a Computer Vision Api Connection . The below key should be working for a while, for testing purposes

Api Key : 9dfe8bb2bae542fab110ecef89d40a77

Url : “https://southeastasia.api.cognitive.microsoft.com/”

Available to download on the Power Apps Bank https://dynamics365society.uk/powerappsbanklist/analyze-image-cognitive-services/