[FASTCGI] Binary Data

Saikat Kanjilal sxk1969 at hotmail.com
Thu Jun 11 11:11:04 EDT 2009

Thanks for the response, my apologies if I was unclear about my goals, so what I need to accomplish is to send back this stream of binary (font/glyph) data which is essentially a character array, I have two choices I can either use:application/octet-stream or make up my own format, if I make up my own format then each client will need to figure out what to do with data that's in my new format, I am leaning towards using application/octet-stream at the moment.

If you have any other suggestions for help please let me know
Date: Thu, 11 Jun 2009 07:15:05 -0500
Subject: Re: [FASTCGI] Binary Data
From: jsprenkle at gmail.com
To: sxk1969 at hotmail.com

I already understand this and am using the above line 

in my program, however what I am asking is whether I need
to set the Content-type to text/html or something else when
returning font or glyph type binary data
If you set the content type to html it will display garbage or nothing.

The browser reads a stream of data with that type, assumes it's text (not binary) and tries to display it as html. Html does not include images or fonts, they are loaded separately.

When asking for help if you're confused about how things work you should probably tell what you are trying to accomplish. Sometimes others may see a different path to your goal than you considered and can suggest it.

Windows Live™ SkyDrive™: Get 25 GB of free online storage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20090611/9e814229/attachment.html>

More information about the FastCGI-developers mailing list