Autor Beitrag
ololo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Sa 07.07.07 17:45 
hi delphi'ler

ich möchte auf buttonklick ein bild aus dem internet (z.b.: "http//:www.abc.de/bild/bild.jpeg"), die url wird in ein edit eingegeben, in ein TImage laden
ich habe keine ahnugn wie ich das machen soll, auf diese weise funktioniert es nicht:
ausblenden Delphi-Quelltext
1:
Image1.Picture.LoadFromFile(Edit1.Text);					


ich habe schon ein bisschen gesucht, aber nich gescheites gefunden, nur das:
www.delphi-forum.de/...=bild+internet+laden

doch der quelltext funktioniert nich...


ich hoffe ihr könnt mir auf verständlich weise helfen :D

greetz
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 07.07.07 18:19 
user profile iconololo hat folgendes geschrieben:
doch der quelltext funktioniert nich...

WAS funktioniert nicht?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 08.07.07 06:54 
Natürlich nicht. Delphi (bzw. Windows) erwartet ja einen lokalen Dateinamen auf deinem Computer. Wenn sich das Bild im INet befindet, befindet es sich auf dem Computer des Anbieters. Soweit ich weiß, funktioniert das mit den Indys.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 08.07.07 08:18 
@Jakob: Der verlinkte Thread hat nicht nur einen Beitrag.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
hkk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 64

Win XP Pro, Win ME, openSUSE 10.2, Ubuntu 7.xx; Firefox 2 (en-US)
D7 Pers, D3 Prof
BeitragVerfasst: So 08.07.07 10:20 
Damit das beispiel aus deinem zitireten thread funktioniert, brauchst du natürlich die Indy-Komponenten (benutz mal die suche hier im forum, da findest du sicher was).

Was für ganz einfache fälle auch klappt ist Suche in der Entwickler-Ecke URLDOWNLOADTOFILE, wozu es hier auch genug beiträge mit beispielen gibt ^^

~HKK