Autor Beitrag
cyberax
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 247

Win XP Pro
Delphi 5 Enterprise
BeitragVerfasst: So 08.04.07 14:20 
Hallo,

eine weitere Frage zu FTP. Ich habe Online auf einem Server Bilder die - wenn vorhanden - in einem TImage angezeigt werden sollen.
Wie genau kann ich darauf zugreifen?

Per FTP? Wenn ich den Pfad, in dem das Bild liegt, in der TImage komponente eingebe, dann öffnet er es, aber mit Picture.loadfromfile('http://serveradresse/pfad/dateiname.jpg') funktioniert's nicht.
Habe leider auch im Forum nicht's genaues dazu gefunden. Muss ich das Bild erst temp. speichern?

Vielen Dank schonmal!!
HelgeLange
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 735
Erhaltene Danke: 6

Windows 7
Delphi7 - Delphi XE
BeitragVerfasst: So 08.04.07 14:30 
jo, muss man er laden... oder geht vllt. auch mit LoadFromStream, dann einfach vom ftp in einen stream laden und das bild von dort nehmen

_________________
"Ich bin bekannt für meine Ironie. Aber auf den Gedanken, im Hafen von New York eine Freiheitsstatue zu errichten, wäre selbst ich nicht gekommen." - George Bernhard Shaw
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 08.04.07 14:59 
Die Adresse sieht aber eher nach HTTP aus und nicht nach FTP. Dafür kannste dann Suche in: Delphi-Forum, Delphi-Library URLDOWNLOADTOFILE oder Suche in: Delphi-Forum, Delphi-Library IDHTTP nehmen.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
cyberax Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 247

Win XP Pro
Delphi 5 Enterprise
BeitragVerfasst: So 08.04.07 16:05 
Okay-

Ich lade nun immer die Datei mit FTP.get runter (in einen Temp Ordner) und lade das Image dann mit dieser TempDatei.

Dank euch und schönes WE noch!