Skip to main content
1-Visitor
November 1, 2019
Solved

Convert base64 code into Image

  • November 1, 2019
  • 1 reply
  • 2894 views

Hi 

 

Can  someone help me converting base64 code into images?

I have check a similar post on this but that will use HEX code.

 

Please let me know if we can acheive this ?

 

 

Best answer by Constantine

Hello,

 

In ThingWorx images which are not stored as files are base64-encoded strings. You don't need to do any conversion if you return IMAGE from your service, see screenshot attached.

 

/ Constantine

1 reply

22-Sapphire I
November 1, 2019

I know Thingworx has UUEncode and UUDecode services, so if the encode matches then the decode should be able to reconstitute the image.

koushal1-VisitorAuthor
1-Visitor
November 1, 2019

Hi,

 

I did not find these services. Could you please let me know under which Entity I will find these services?

Please let me know if any documentation available for these services.

Thanks for your response.

18-Opal
November 2, 2019

Hello,

 

In ThingWorx images which are not stored as files are base64-encoded strings. You don't need to do any conversion if you return IMAGE from your service, see screenshot attached.

 

/ Constantine