Display a Picture from a URL

Post your Gambas programming questions here.
Post Reply
rj71
Posts: 27
Joined: Thursday 13th April 2023 6:39pm

Display a Picture from a URL

Post by rj71 »

Hi All,
Is there not any way to display a picture that's sitting on a remote web server? In other words, instead of loading from disk or downloading the image and showing it in a picturebox, just reference a URL? If PictureBox or imageview can do it, I haven't figured it out. My tests with webview were unsuccessful as well....it works but when I want load/view a new pic into the same webview control, I get a segmentation fault. Basically what I want to do is have several pictureboxes(or whatever component would work) on my form and each would have a routine using httpclient that would hit a php page on my server that will return a random picture filename which would then be displayed via url, all refreshing periodically. Can someone enlighten me or point me to a thread in this forum i may have missed? Thank you!
vuott
Posts: 263
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Display a Picture from a URL

Post by vuott »

As a general topic for downloading an image from a web site, I can point you to this page of the Italian forum Wiki:

https://www.gambas-it.org/wiki/index.ph ... o_internet
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
rj71
Posts: 27
Joined: Thursday 13th April 2023 6:39pm

Re: Display a Picture from a URL

Post by rj71 »

I believe that's exactly what I was looking for! Thank you!
Post Reply