grüß euch.
ich möchte ein bild aus dem netz in einen memory stream laden.
jedoch kommt bei IdHTTP1.Get beim ausführen in delphi immer folgende fehlermeldung:
project xy.exe raised exception class EIdconnClosedGracefully with message 'Connection Closed Gracefully.'.
Process stoppt. usw step or run to continue.
ausserhalb von delphi läuft die exe.
hier mein code.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27:
| procedure tform1.getdata; var mm : TMemoryStream; GIF : TGIFImage; Bitmap : TBitmap;
begin
mm := TMemoryStream.Create; GIF := TGIFImage.Create;
try
IdHTTP1.Get('http://mcsky.mc.funpic.de/debilsoft/donate.gif', mm); mm.Position := 0; gif.LoadFromStream(mm); image1.Picture.Bitmap.Assign(gif); except end;
mm.Free; . . . |
grüße
horst