Re: Binary Data
Saikat Kanjilal <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] To: [email protected] 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. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers