If its an image you are trying to display...
I have an app that streams an image to an asp page.
<img src="http://191.1.1.7:16384?...
Where the IP and Port point to an open socket in my app. All the socket
has to do is parse the parameters sent after the "?", and stream
whatever over the connection, then drop the connection.

Dave.

-----Original Message-----
From: Jeremy Coulter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 15:52
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Streams


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"

----------------------------------------------------------------------
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal.
www.tararua.com
----------------------------------------------------------------------
---------------------------------------------------------------------------
    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