[FASTCGI] Binary Data

Saikat Kanjilal sxk1969 at hotmail.com
Wed Jun 10 17:02:48 EDT 2009








Its definitely not an image,its could be an open type font and other types of fonts and glyph data, specifically I want to return a character buffer through stdout back to the client (meaning I want to return a stream containing this character buffer containing this binary font/glyph data).



Date: Wed, 10 Jun 2009 15:51:17 -0500
Subject: Re: [FASTCGI] Binary Data
From: jsprenkle at gmail.com
To: sxk1969 at hotmail.com

The content type should match the file type.
If it's a gif image you use 'Content-type: image/gif''
What kind of file is "font and glyph" data?  Is this a true type font?



On Wed, Jun 10, 2009 at 3:47 PM, Saikat Kanjilal <sxk1969 at hotmail.com> wrote:






Hi Folks:
I'm interested in rendering binary font and glyph data dynamically from a service written in C and fastcgi using Apache, I was wondering what the correct mime_type for this should be in my fastcgi application, currently I have the following:


FCGX_FPrintF(out,"Content-type: application/octet-stream\r\nStatus: 200 OK\r\n\r\n");

Is this correct, whenever I call my fastcgi app the browser immediately asks me what to do with my fastcgi application instead of executing it and rendering the dynamic font and glyph data.



Hotmail® has ever-growing storage! Don’t worry about storage limits. Check it out.
_________________________________________________________________
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20090610/8a27a74b/attachment.html>


More information about the FastCGI-developers mailing list