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

Reply via email to