Jump to content

Refresh UniImage


bbm

Recommended Posts

Hi,

I want to show a picture of a web cam in a form. I tried this with an UniImgae component. The request of the first picture is no problem (URL).

The question is, how I can get a  new picture every second.

Is the UniImage the right way or is there any other solution?

Best regards,

Bernd 

Link to comment
Share on other sites

5 hours ago, bbm said:

Hi,

I want to show a picture of a web cam in a form. I tried this with an UniImgae component. The request of the first picture is no problem (URL).

The question is, how I can get a  new picture every second.

Is the UniImage the right way or is there any other solution?

Best regards,

Bernd 

Hi,

As it is the same name, images come from browser cache.

To force refresh, add datetimestamp to end of the url like this:

UniImage.Url := MyUrl+'?'+DateTimetoStr(now);

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...