[fwd] Re: Returning image/gif Content-type

Stanley Gambarin (gambarin@OpenMarket.com)
Fri, 07 Feb 1997 17:13:18 -0500

Message-Id: <199702072213.RAA00685@u4-138.openmarket.com>
To: fastcgi-developers@OpenMarket.com
Subject: [fwd] Re: Returning image/gif Content-type
Date: Fri, 07 Feb 1997 17:13:18 -0500
From: Stanley Gambarin <gambarin@OpenMarket.com>

------- Forwarded Message

To: Sandy Kydd <sandy@dmcsoft.com>
cc: fastcgi-developers <fastcgi-developers@OpenMarket.com>
From: "Dennis S. Becton/VGI"
Date:  7 Feb 97 10:26:54 EST
Subject: Re: Returning image/gif Content-type
MIME-Version: 1.0
Content-Type: Text/Plain

I believe we're doing exactly what you are looking for.  Here's what we did:
 - Created a Fast-CGI GIF server app that serves gifs generated on the 
fly(using the gd library).
  // Set the content type
  puts( "Content-type: image/gif\n" ) ;
  // Write the gif to stdout
 - The Fast-CGI GIF server app is access via an <IMG SRC> tag in the HTML 
template.  We pass information in the query string to tell the GIF server app 
what to generate.  Basically, the browser encounters the <IMG SRC> tag, makes 
request to the Fast-CGI GIF server app, and the GIF server app returns a GIF.

Hope this helps...
------- End of Forwarded Message