# Image ImagePath is not updating to display new image

**URL:** <https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124>\
**Category:** Ignition\
**Created:** [August 22, 2013, 8:07pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124 "2013-08-22T20:07:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bob/32/16899_2.png) [@Bob](https://forum.inductiveautomation.com/u/Bob)\
**Post date:** [August 22, 2013, 8:07pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/1 "2013-08-22T20:07:13Z")

</div>

I am setting the ImagePath for an Image component to [ServerX/cwt/files/CurrentScreen.png](http://ServerX/cwt/files/CurrentScreen.png)

The CurrentScreen.png is being constantly updated on the remote server (ServerX) and I would like to have the image in the Ignition Window update to show these new images but the image component just continues to show the original PNG image and never updates. I suspect the original PNG image is cached and won’t retrieve a new image since the ImagePath filename is not changing.

I have tried using a Timer and using repaint to update the image. I have also tried setting the ImagePath to a different value and then back to the desired value to see if that would trigger an update. No luck so far.

I would appreciate any ideas on how I might accomplish updating the image.

Thank you,  
Bob

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [August 26, 2013, 10:49pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/2 "2013-08-26T22:49:06Z")

</div>

Unfortunately there is no way around the aggressive caching system at the moment. We have added a ticket to our system for this issue and the developers have been made aware of the issue.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [August 26, 2013, 11:13pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/3 "2013-08-26T23:13:47Z")

</div>

would a better route be to have different paths for the images and use scripting to change the path to the desired image? just a thought.

---

<div class="post-metadata">

**Author:** ![wokenup](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@wokenup](https://forum.inductiveautomation.com/u/wokenup)\
**Post date:** [December 20, 2017, 5:19am UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/4 "2017-12-20T05:19:00Z")

</div>

Guys,

I’m having same problem on Ignition 7.9.2 at the moment - the file is updating but the image in the component is not. Is there any update on this topic from the developers? 4 years passed…

Thanks

---

<div class="post-metadata">

**Author:** ![Alexey.Chekhovskiy](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Alexey.Chekhovskiy](https://forum.inductiveautomation.com/u/Alexey.Chekhovskiy)\
**Post date:** [August 12, 2019, 9:40pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/5 "2019-08-12T21:40:08Z")

</div>

another 2 years passed and nothing change. still can’t update picture. ☹

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 12, 2019, 11:47pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/6 "2019-08-12T23:47:58Z")

</div>

The big problem here is actually caching in Java itself, not on Ignition’s end. This did somewhat slip between the cracks, but if you want a workaround, you can fetch image paths using a fully qualified URL, rather than a relative image path. An expression like this should work across different client machines:  
`{[System]Client/Network/GatewayAddress} + "/system/images/" + "test.png"`

If that’s still not working properly, you can try adding a dummy “cache” URL parameter, so that the URL is changing periodically to force a cache miss:  
`{[System]Client/Network/GatewayAddress} + "/system/images/" + "test.png" + "?cache=" + toLong(now(5000))`

---

<div class="post-metadata">

**Author:** ![Alexey.Chekhovskiy](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Alexey.Chekhovskiy](https://forum.inductiveautomation.com/u/Alexey.Chekhovskiy)\
**Post date:** [August 13, 2019, 3:34pm UTC](https://forum.inductiveautomation.com/t/image-imagepath-is-not-updating-to-display-new-image/7124/7 "2019-08-13T15:34:48Z")

</div>

Part of this is work. it show and update picture in Designer. But nothing in Browsers. Chrome show clean page. FireFox show place from picture. Edge some time show picture, some time show nothing.  
Ignition 8.0.3
