Skip to main content
13-Aquamarine
November 15, 2023
Solved

Base 64 string in imagewidget, Mashup Builder hangs

  • November 15, 2023
  • 1 reply
  • 1382 views

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

Best answer by Sathishkumar_C

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

 

 

 

1 reply

17-Peridot
November 16, 2023

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.

13-Aquamarine
November 16, 2023

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?

17-Peridot
November 16, 2023

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