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



"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


.



Relevant Pages

  • Re: Delphi 4 basic, loading a picture from an internet address
    ... > 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 ... I shall now Google for HTTP client component. ...
    (alt.comp.lang.borland-delphi)
  • Re: Comparitive speed of DVD vs CD drives
    ... >> a temporary file on a hard drive, ... > I guess because there would be an unacceptable delay or system load on ... > insertion, imagine if you just want to look at the README, index.html ... > perfectly good for reading my docs, being near instant with the cache. ...
    (comp.unix.solaris)
  • Re: Comparitive speed of DVD vs CD drives
    ... > a temporary file on a hard drive, ... I guess because there would be an unacceptable delay or system load on ... insertion, imagine if you just want to look at the README, index.html ... then squid caches on hard drive all my CDROM docs. ...
    (comp.unix.solaris)
  • Is it possible to load XML/SSML string into workbook without using temporary file?
    ... possible to load it into the Excel workbook object using C# (e.g., ... temporary file and then using Workbook.OpenTextto open it ... a temporary directory set up... ...
    (microsoft.public.excel.programming)