cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to read any image from SystemRepository using Service and display on image widget

ranjank
14-Alexandrite

How to read any image from SystemRepository using Service and display on image widget

Pls help on this logic

1 ACCEPTED SOLUTION

Accepted Solutions
Ashritha
13-Aquamarine
(To:ranjank)

Since Image widget uses the Media entity to display image, it is not possible to display image from System Repository using Image widget. Instead use following steps :

Use Service :

var Content = Things["SystemRepository"].LoadImage({
path: undefined /* STRING */ 
});

path: complete path of image

 

Use Value Display widget :

  1. Bind output of above service to value display
  2. Click on Render and State
  3. Change the Renderer to Image in the drop down
  4. Done and Save

View solution in original post

2 REPLIES 2
Ashritha
13-Aquamarine
(To:ranjank)

Since Image widget uses the Media entity to display image, it is not possible to display image from System Repository using Image widget. Instead use following steps :

Use Service :

var Content = Things["SystemRepository"].LoadImage({
path: undefined /* STRING */ 
});

path: complete path of image

 

Use Value Display widget :

  1. Bind output of above service to value display
  2. Click on Render and State
  3. Change the Renderer to Image in the drop down
  4. Done and Save
anarwal
12-Amethyst
(To:ranjank)

 Hi @ranjank ,

If above response has answered your question, please mark as Accepted Solution, for the benefit of others who may have the same question.

Top Tags