You can't as far as in know.
You have to have the image on it's own page that does nothing else.
Just the same as if the image were a file on it's own - you still need a
http:// reference to the image file to display.

Myles.


> -----Original Message-----
> From: Tony Sinclair [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, August 18, 2000 12:15 PM
> To:   Multiple recipients of list offtopic
> Subject:      RE: [DUG-OFFTOPIC]:  Images from a DB
> 
> Just a continuation of this theme,
> 
> if you were doing this from ISAPI and wanted to respond with both HTML and
> Jpeg on the same page, what do you set the Response.ContentType to?
> 
> Tony Sinclair
> Holliday Group Limited
> Christchurch
> New Zealand
> 
> 
> -----Original Message-----
> From: Myles Penlington [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 18 August 2000 11:57
> To: Multiple recipients of list offtopic
> Subject: RE: [DUG-OFFTOPIC]: Images from a DB
> 
> 
> Like this
> <%
> Response.ContentType = "image/jpeg"
> rsBlob = Server.CreateObject("adodb.recordset")
> rsBlob.Open("{ Call GetImage }", dbconnection, adOpenForwardOnly,
> adLockReadOnly)
> if (!rsBlob.EOF) Response.BinaryWrite( rsBlob.Fields("image").Value )
> rsBlob.Close()
> rsBlob=null
> %>
> 
> > -----Original Message-----
> > From:       Jeremy Coulter [SMTP:[EMAIL PROTECTED]]
> > Sent:       Friday, August 18, 2000 11:51 AM
> > To: Multiple recipients of list offtopic
> > Subject:    [DUG-OFFTOPIC]:  Images from a DB
> > 
> > Hi all.
> >  
> > I am just trying some things, and I want to be able to show an image
> from
> > a DB in an ASP page.
> > Does anyone know how to do this ??
> >  
> > Cheers,
> >  
> > Jeremy Coulter (manager)
> > Visual Software Solutions
> > 145 Langdons Road
> > Christchurch
> > ph +64 3 3521595
> > fx +64 3 3521596
> > cell +21 2533214
> > <http://www.vss.co.nz/>
> >  
> --------------------------------------------------------------------------
> -
>   New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> --------------------------------------------------------------------------
> -
>   New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
  New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to