Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : Gif Image as response for THttpServer request

www.cryer.info
Managed Newsgroup Archive

Gif Image as response for THttpServer request

Subject:Gif Image as response for THttpServer request
Posted by:"Christian Kaufmann" (christian.kaufma..@gmx.net)
Date:Tue, 22 Feb 2005 20:15:48

Hi,

I want to create a gif image in a request of a THttpServer. The code
will be something like this

bmp := TBitmap.Create;
// paint on bitmap

gif = TGifImage.Create;
gif.Assign(bmp);
AResponse.ContentType       := 'image/gif';
AResponse.FreeContentStream := True;
AResponse.ContentStream     := TMemoryStream.Create;
gif.SaveToStream(AResponse.ContentStream);

bmp.Free;
gif.Free;

for the GifImage I use the library of Anders Melander.

My question is, is this thread safe or if not, what do I have to do,
to make it safe?

cu Christian

Replies:

www.cryer.info
Managed Newsgroup Archive