peacemaker Expert Licensed User Longtime User Dec 12, 2023 #1 Hi, All and @alwaysbusy If to try to make "real-time" image update without caching often, say, each second or better faster - is it possible ? How to use .SetVisibilityFlush, what is first parameter format ? B4X: Copy Sub timLog_Tick img_frame.Source = "../../" & "img.jpg" 'it's being updated image file img_frame.Refresh 'but only first one is constantly visible on web-page, not updated by timer, but file is for sure updated End Sub Last edited: Dec 12, 2023
Hi, All and @alwaysbusy If to try to make "real-time" image update without caching often, say, each second or better faster - is it possible ? How to use .SetVisibilityFlush, what is first parameter format ? B4X: Copy Sub timLog_Tick img_frame.Source = "../../" & "img.jpg" 'it's being updated image file img_frame.Refresh 'but only first one is constantly visible on web-page, not updated by timer, but file is for sure updated End Sub
peacemaker Expert Licensed User Longtime User Dec 12, 2023 #2 Seems, solved - file names should be not the same. Upvote 0
Cableguy Expert Licensed User Longtime User Dec 12, 2023 #3 peacemaker said: Seems, solved - file names should be not the same. Click to expand... I remember that @alwaysbusy appends a TimeStamp to files he wishes not to be cached, resulting in different, but still logical, filenames Upvote 0
peacemaker said: Seems, solved - file names should be not the same. Click to expand... I remember that @alwaysbusy appends a TimeStamp to files he wishes not to be cached, resulting in different, but still logical, filenames
peacemaker Expert Licensed User Longtime User Dec 12, 2023 #4 Yes. I have to generate lots of images B4X: Copy Dim tmp_img As String = "tmp_" & DateTime.Now & ".jpg" and it's rather trouble to delete them next.... They are loaded not so fast by the browser... Upvote 0
Yes. I have to generate lots of images B4X: Copy Dim tmp_img As String = "tmp_" & DateTime.Now & ".jpg" and it's rather trouble to delete them next.... They are loaded not so fast by the browser...
Cableguy Expert Licensed User Longtime User Dec 12, 2023 #5 peacemaker said: Yes. I have to generate lots of images B4X: Copy Dim tmp_img As String = "tmp_" & DateTime.Now & ".jpg" and it's rather trouble to delete them next.... They are loaded not so fast by the browser... Click to expand... Since you are the one saving them, you can easily keep track of the last used one, and delete it. Upvote 0
peacemaker said: Yes. I have to generate lots of images B4X: Copy Dim tmp_img As String = "tmp_" & DateTime.Now & ".jpg" and it's rather trouble to delete them next.... They are loaded not so fast by the browser... Click to expand... Since you are the one saving them, you can easily keep track of the last used one, and delete it.
alwaysbusy Expert Licensed User Longtime User Dec 13, 2023 #6 Have you tried adding the timestamp at the url level, not at filename level? This should hint at the browser that it is new. Code: Copy Sub timLog_Tick img_frame.Source = "../../" & "img.jpg?" & DateTime.Now ' ? + timestamp img_frame.Refresh End Sub Alwaysbusy Upvote 0
Have you tried adding the timestamp at the url level, not at filename level? This should hint at the browser that it is new. Code: Copy Sub timLog_Tick img_frame.Source = "../../" & "img.jpg?" & DateTime.Now ' ? + timestamp img_frame.Refresh End Sub Alwaysbusy
peacemaker Expert Licensed User Longtime User Dec 13, 2023 #7 alwaysbusy said: timestamp at the url level Click to expand... Indeed works !!!111 Thanks ! Upvote 0