How can I display base64 encoded media in Media Preview widget in Workshop?

I would like to display a b64 encoded icon stored in an object on a Workshop app.

I see the option of “base64-encoded string” in Media Preview in Workshop, how can I use it ?

image

You can set the configuration of the Media Preview widget to “Media URL” and provide a string which is a data URI, like:

You can see some live example of this in the “Workshop design hub” that you can install from Marketplace in your Foundry enrollment.

Steps:

  • Go in “Marketplace” application in Foundry
  • Search “Workshop design hub”
  • Click on the product and install it
  • Look at the live example !