JScript Sample: jscript/ado/animals/gif.asp
   ASP Script
   Comments or Client-side Script
   HTML and Text

<%@ Language=JavaScript %>
<%
   var RS = Session("animalsRd");
   if ( !RS.EOF && !RS.BOF ) {
      PicSize = RS("Gif").ActualSize;
      if (PicSize > 0) {
         Response.Buffer = true;
         Response.ContentType = "image/gif";

         // Write Data back to client. Because MIME type is set to
         // image/gif, the browser will automatically render as a picture

         Pic = RS("Gif").GetChunk(PicSize);
         Response.BinaryWrite( Pic );
      } else {
%>

<html><body>Gif:</body></html>
<%
      }
   } else {
%>

<html><body>Gif:</body></html>
<%
   }
%>


Copyright © 1998-2002, Halcyon Software Inc. All rights reserved.