Skip to main content
14-Alexandrite
October 14, 2015
Question

Store image into database

  • October 14, 2015
  • 1 reply
  • 1475 views

Hi,

I want to store an image data in Composer(for example, a property with baseType of Image or ImageLink) into a database say Oracle, Is this possible?

Also what's the best way to get image from db and then bind it with a Image widget in mashup? Do we have to store images into Thingworx Repository and then set SourceURL for each image widget?

Many thanks,

Br,

Anna

    1 reply

    1-Visitor
    October 14, 2015

    Hi Anna,

    I would like to see insights about it from support team too. I don't feel happy storing images on the persistence storage itself, and as PropertyContent gets exported when you export entities, you will get the full image ( base64 ) on the export XML...

    I've already choice to store Images on FileRepository ( with a Folder for each thing, and a SubFolder for each propertyName which are baseType=ImageLink, and the property just holds the SourceURL for the file on the FileRepository ).

    Best Regards,

    Carles