unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP,gifimage;
type
TForm1 = class(TForm)
Image1: TImage;
IdHTTP1: TIdHTTP;
procedure FormDblClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormDblClick(Sender: TObject);
var
tt:TFileStream ;
begin
//显示
tt := TFileStream.Create('./show.gif',fmcreate) ;
try
IdHTTP1.Get('http://expert.t7online.com/cgi-bin/geturl/daten/profi/cn/2006/04/12/basis00/cncn/tmax_06041212_1200.gif?0ca768389b8e9ccdfaa63f4b04f12e63',tt) ;
finally
tt.Free ;
end;
try
Form1.Image1.Picture.LoadFromFile('./show.gif') ;
except
end;
end ;
end.
我已测试成功