<?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: How to refresh URL Image? in G Web Development Software</title>
    <link>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330625#M640</link>
    <description>&lt;P&gt;works thanks also the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;Synchronous Image for WebVI&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But only on my iphone, not on chrome or android handys&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What the problem could be, no idea.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Sep 2023 14:16:56 GMT</pubDate>
    <dc:creator>Patrick_321</dc:creator>
    <dc:date>2023-09-24T14:16:56Z</dc:date>
    <item>
      <title>How to refresh URL Image?</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330273#M638</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a program that puts an image on a website. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Every minute a new photo is taken, which updates that image on the website.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I use a URL image to display this image in gWeb.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This works so far, but:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I update the shown Picture in the "URL image" Container&amp;nbsp;in gWeb?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here I only see the photo from the start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_321_0-1695319950722.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/cb5009a7478afd1041d4d389cc3a97b6962412fd/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33323334313269374433423732443142413630323732392f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Patrick_321_0-1695319950722.png" alt="Patrick_321_0-1695319950722.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_321_1-1695319978816.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/93cfc8f181634c6c81ad34af918f9f882f8513db/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33323334313369354538463532383939414141303846432f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Patrick_321_1-1695319978816.png" alt="Patrick_321_1-1695319978816.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:15:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330273#M638</guid>
      <dc:creator>Patrick_321</dc:creator>
      <dc:date>2023-09-21T18:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh URL Image?</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330303#M639</link>
      <description>&lt;P&gt;Hi Patrick_321,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is likely happening is that the browser is caching the image at that URL. If you write the same URL to the image repeatedly, if the image is already in the cache then it won't be updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It depends on your server if it is safe to do but a common way to modify the URL and trigger a new download is to add a random number as a search parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;For example, for the url &lt;FONT face="courier new,courier"&gt;http://example.com:8080/Picture.png&amp;nbsp;&lt;/FONT&gt; you may add a search parameter like&amp;nbsp;&lt;FONT face="courier new,courier"&gt;http://example.com:8080/Picture.png?_=1234&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;for example. In that example the search parameter name that was added is &lt;FONT face="courier new,courier"&gt;_&lt;/FONT&gt; and the value is a number generated randomly, in this case &lt;FONT face="courier new,courier"&gt;1234&lt;/FONT&gt;. As long as adding a search parameter with a random number to the URL does not cause issues with the server that can be a common approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another behavior you are likely to run into is that when changing the URL the image will be cleared immediately until the new image loads. This can cause an undesirable flicker depending on how fast the image is updated. The&amp;nbsp;&lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;Synchronous Image for WebVI&lt;/A&gt; example gives you a new image control where you can control the updates more precisely. You can use that library to only update the image after a new one has loaded.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:10:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330303#M639</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2023-09-21T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh URL Image?</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330625#M640</link>
      <description>&lt;P&gt;works thanks also the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;Synchronous Image for WebVI&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But only on my iphone, not on chrome or android handys&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What the problem could be, no idea.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 14:16:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330625#M640</guid>
      <dc:creator>Patrick_321</dc:creator>
      <dc:date>2023-09-24T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh URL Image?</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330644#M642</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/726719"&gt;@Patrick_321&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;works thanks also the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.ni.com/t5/Example-Code/Synchronous-Image-for-WebVI/ta-p/4198872" target="_self"&gt;Synchronous Image for WebVI&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But only on my iphone, not on chrome or android handys&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What the problem could be, no idea.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Oh interesting, not sure. On an up to date Android Pixel 4a running Chrome 117 the &lt;A href="https://rajsite.github.io/webvi-experiments/SynchronousImage/" target="_self"&gt;Synchronous Image Demo Page&lt;/A&gt; seems to run correctly.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 18:10:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/How-to-refresh-URL-Image/m-p/4330644#M642</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2023-09-24T18:10:58Z</dc:date>
    </item>
  </channel>
</rss>

