<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Show image from TWX in Vuforia Studio</title>
    <link>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/1042813#M13079</link>
    <description>&lt;P&gt;Thank you! Your post has helped me to show images in Vuforia view app.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 13:09:57 GMT</pubDate>
    <dc:creator>MA8731174</dc:creator>
    <dc:date>2025-11-11T13:09:57Z</dc:date>
    <item>
      <title>Show image from TWX</title>
      <link>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/777840#M10616</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to show photo from Image Repository in TWX, but photo stored there is saved as base64. I was trying to get that photo via 'loadImage' service, then convert from base64 to jpg with '`data&amp;amp;colon;image/jpg;base64,${response.rows[0].Content}`' and set this as src in 3dImage.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it works in preview mode, but on mobile it doesn't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get an error :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'ERROR, data: ["Could not add 3D image: image_0_3"]; discarding callback; args=["image_0_3","image_0_3","data&amp;amp;colon;image/jpg;base64,/9j/4AAQSkZJ...'&lt;/P&gt;
&lt;P&gt;So how can I get image from TWX and set it as 3dImage?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 09:39:43 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/777840#M10616</guid>
      <dc:creator>JT_10028013</dc:creator>
      <dc:date>2022-02-11T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Show image from TWX</title>
      <link>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/778300#M10620</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/530220"&gt;@JT_10028013&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can store image in ThingWorx server @&amp;lt;Tomcat&amp;gt;\webapps\Thingworx\images folder&lt;/P&gt;&lt;P&gt;Then the&amp;nbsp;images can be accessed using URL such as&amp;nbsp;&lt;A href="https://community.ptc.com/" target="_blank"&gt;http://&amp;lt;server&amp;gt;:&amp;lt;port&amp;gt;/Thingworx/images/111.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add above image link as an Application Parameter in Studio.&lt;/P&gt;&lt;P&gt;Bind the image URL (parameter) to the Resource of the 3D image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure the ThingWorx(image) URL is accessible from the View device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to &lt;A href="https://www.ptc.com/en/support/article/cs314282" target="_blank"&gt;https://www.ptc.com/en/support/article/cs314282&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 06:22:54 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/778300#M10620</guid>
      <dc:creator>TonyZhang</dc:creator>
      <dc:date>2022-02-15T06:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show image from TWX</title>
      <link>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/779432#M10632</link>
      <description>&lt;P&gt;Have you tried the url from the repo for example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$scope.view.wdg['myimage'].imgsrc=repoURL // from example&amp;nbsp;&lt;SPAN&gt;"/Thingworx/FileRepositories/TakePhoto_Repo/photos/demo/1645196272644.png"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then you don't have to deal with the content.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is an example of an upload service in Thingworx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;logger.debug("Entering UploadPhoto" );&lt;BR /&gt;&lt;BR /&gt;if (fileName === undefined || fileName === "") {&lt;BR /&gt;  var d = new Date();&lt;BR /&gt;  fileName = "Photo-" + d.getTime();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;// result: STRING&lt;BR /&gt;var usename = Resources["CurrentSessionInfo"].GetCurrentUser();&lt;BR /&gt;&lt;BR /&gt;//Create Folder in doesn't exist&lt;BR /&gt;try {&lt;BR /&gt;  me.CreateFolder({&lt;BR /&gt;   path: '/photos/'+ usename /* STRING */&lt;BR /&gt;  });&lt;BR /&gt;&lt;BR /&gt;} catch (ex) {&lt;BR /&gt;// decide how to inform user &lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;me.SaveImage({&lt;BR /&gt;  path: '/photos/'+ usename + '/'+fileName /* STRING */,&lt;BR /&gt;  content: imageContent /* IMAGE */&lt;BR /&gt;});&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 15:17:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/779432#M10632</guid>
      <dc:creator>sgreywilson</dc:creator>
      <dc:date>2022-02-18T15:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show image from TWX</title>
      <link>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/1042813#M13079</link>
      <description>&lt;P&gt;Thank you! Your post has helped me to show images in Vuforia view app.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 13:09:57 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Vuforia-Studio/Show-image-from-TWX/m-p/1042813#M13079</guid>
      <dc:creator>MA8731174</dc:creator>
      <dc:date>2025-11-11T13:09:57Z</dc:date>
    </item>
  </channel>
</rss>

