Re: Binary Data

Saikat Kanjilal <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>






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: [email protected]
To: [email protected]

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 <[email protected]> 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

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.