Hi all.

I have a COM DLL that I want to pass back an image stream to an ASP page.
I am doing this via a delphi CGI app, well it passes back an image in the response 
object...and works fine, but will not be able to use this method now which is a pain.

I am doing :-

var
  mMemStream : TOLEStream;
  oVar : OLEVariant;
  img : TImage;
  Stream: IStream;
begin
   mMemStream := TOLEStream.create(Stream);

   img:=TImage.create(nil);
   img.picture.LoadFromFile('c:\Chart2.bmp');
   img.Picture.Bitmap.SaveToStream(mMemStream);

   move(mMemStream,oVar,iFileSize);

BUT...when it does the MOVE I get a "Catastrophic Error" or it just craps out...I 
tired to use a TMemoryStream too, and got the same result.
Has anyone else done this and can help me out ??

Thanks, Jeremy Coulter
 
 
 
Jeremy Coulter (Manager)
Visual Software Solutions
Christchurch, New Zealand
PH 03-3521595
FAX 03-3521596
MOBILE 021-2533214
www.vss.co.nz 

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to