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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...