Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Do 18.12.08 00:47 
Hallo Leute,
ich hab da folgende Frage:
Also ist es möglich ein Bild ohne von einer Webseite anzuzeigen, ohne das ich es vorher runterladen muss?
Das heist einfach den direkten Link angeben und es wird dann im Image1 angezeigt?

Danke schon mal fürs Helfen.

Mfg Dog
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19340
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 18.12.08 00:51 
Ohne Herunterladen geht ja nicht, dann hast du ja keine Bilddaten zum Anzeigen. Ich vermute du meinst ohne Zwischenspeicherung in einer Datei?

Du kannst die Datei z.B. mit TIdHttp von den Indy Komponenten in einen Stream herunterladen und diesen dann mit ImageX.Picture.LoadFromStream ins Image laden. Das sollte funktionieren.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 18.12.08 10:09 
Und für die ganz faulen gibts bei TMS Software eine Komponente, bei der man direkt eine URL eingibt und fertig.
Ich persönlich würde aber die beschriebene Methode mit TidHTTP nehmen!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Do 18.12.08 13:36 
Naja ich hab mir überlegt das es doch sinvoller ist das Bild zu speichern, weil so kann man es das nächste mal schneller laden und muß es nicht vorher erst aus dem Netz ziehn.

Trozdem Danke fürs Helfen.