Aaaarrrggggg. Of course. Friday. nuff said.

Trevor Jones wrote:

Try
 SourceStream.seek(0,soFromBegining);
 MyBMP.LoadFromStream(SourceStream);

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Phil Middlemiss
Sent: Friday, 15 April 2005 3:47 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Bitmap in a stream

I have a TMemory stream that is loaded up with what should be a bitmap received from across the web. If I export the stream to file, sure enough I get a bitmap that I can view in an editor. If I try to go

MyBMP.LoadFromStream(SourceStream);

It fails and MyBMP remains empty.

Any ideas?

Phil.

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi





_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to