Hi all. I figured out my problem...I should have done
move(mMemStream,oVar,sizeof(mMemStream) !!!! agr
But NOW, I have figure out how too get it to display the data in an ASP
page...this I think I need help with..
thanks, Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, 8 June 2001 02:28
To: Multiple recipients of list delphi
Subject: [DUG]: Streams
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"
---------------------------------------------------------------------------
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"