Re: Delphi 4 basic, loading a picture from an internet address




"Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx> wrote in message
news:4267f0c1$0$152$e4fe514c@xxxxxxxxxxxxxxxxx
> "Endoscope" <looking@xxxxxxxxxx> wrote in message
> news:WnO9e.10$vU4.9@xxxxxxxxxxxxxxxxxxxxxxx
>
> > Say I have an image on a form. Is there a way I can write something
> > like Image1.Picture:='http://www.somewhere.com/picture.jpg'; and have
> > it work?
>
> Feed the URL to an HTTP client component. It knows how to retrieve the
> resource. If the component can give you the data as a stream, you can
> load the image from it directly; if it can only load into a buffer,
> you'll have to set up your own TMemoryStream or temporary file or some
> such.
>
> Groetjes,
> Maarten Wiltink
>
>

Err.... I shall now Google for HTTP client component. I didn't get one in
Delphi 4 basic, or I haven't looked hard enough.

Monster

Thanks


.