Skip to main content
13-Aquamarine
Nov 15, 2023 11:32 AM UTC
Solved

Base 64 string in imagewidget, Mashup Builder hangs

Hi,

I am trying to display an base64 image with the image widget, but the base64 string seems to hang the mashup builder when saving it.

 

Questions:

- Is there a max length of the sourceURL property?

- How to get arround the mashup builder hanging when saving?

- Another option would be to have a html widget and in it have a ordinary img element, can that be done and how?

 

// Oskar

17-Peridot
Nov 16, 2023 12:48 PM UTC

if you are using image widget try changing the following options,

Sathishkumar_C_0-1700138747235.png

 

If you are using value display... try formatting like below...

Sathishkumar_C_1-1700138870266.png

 

 

 

3 replies

17-Peridot
Nov 16, 2023 4:03 AM UTC

It should work as expected. please refer following post,

https://community.ptc.com/t5/ThingWorx-Developers/Base64-URL-with-Image-Widget/m-p/837618#M60219

 

altenate option you can use value display with base64 string render as image.

 

if possible you can share entities here.

Translate
13-Aquamarine
Nov 16, 2023 9:36 AM UTC

Hi,

Thank you for the tip, now the image is shown, but it is not entirely centered (on the y axis, align-items in flex box) despite setting horizontal and vertical alignment to center, how to fix that?

Translate
17-Peridot
Nov 16, 2023 12:48 PM UTC

if you are using image widget try changing the following options,

Sathishkumar_C_0-1700138747235.png

 

If you are using value display... try formatting like below...

Sathishkumar_C_1-1700138870266.png

 

 

 

Translate