Skip to main content
1-Visitor
March 31, 2020
Solved

Thingworx 8.5.4 not able to import svg-xml media entity (Error: invalid length)

  • March 31, 2020
  • 1 reply
  • 2708 views

Hey, I am trying to import an SVG Image into ThingWorx 8.5.4-b222.

Unfortunately I am getting following error message:

"Import failed: invalid length"

 

Can someone help?

 

Cheers Fynn

 

Best answer by cmorfin

Hi @IoT_Fynn 

 

Yes it appears the way to upload svg is via dynamic content as you did.
If you check the Help Center Media page, it indicates 
"Locally-stored media entities support JPEG, PNG, and BMP image types. To use other file types, refer to them as dynamic content and modify the supportedMediaEntityContentTypes parameter in the platform-settings.json file to include the desired MIME-type."

I think that follows the behaviour you are seeing.

 

Regards

Christophe

1 reply

Community Manager
March 31, 2020

Hi @IoT_Fynn.

 

Can you please provide the image so I can test it?

 

Regards.

 

--Sharon

IoT_Fynn1-VisitorAuthor
1-Visitor
April 1, 2020

 Hey Sharon,

thank you for your quick reply! I put the Image in the appendix. But it did not work with any svg that I tried so far.

 

Regards

Fynn

19-Tanzanite
April 2, 2020

Hi @IoT_Fynn 

 

I am not sure how you are importing your svg file but if that is via a Media entity, currently ThingWorx does not allow it.

I'd recommend voting for this ThingWorx idea to give it more weight to be taken into considerations for future release.

 

Christophe