Re: Binary Data

Saikat Kanjilal <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
Hi Jay:
Thanks for the response, I use the browser only as an example, my client could be any application and not necessarily a browser,what i am really wondering about is how to return this binary font/glyph data that my fastcgi application generates back to the caller (caller can be a flex/air/php/perl application or anything else), meaning:

1) How can I set the mime type correctly in my fastcgi application so that any of the clients mentioned above  can receive and embed this binary font/glyph data into their documents.
2) Are there limitations in fastcgi where I could only send back chunks of the data at a time (if its a large font/glyph)?


Bear with me I am venturing into uncharted territory here.
Thanks in advance
Date: Wed, 10 Jun 2009 16:05:29 -0500
Subject: Re: [FASTCGI] Binary Data
From: [email protected]
To: [email protected]

You're creating something new so there won't be an existing content type for it.
You'll have to create one and tell the browser what to do with it when it receives it.

Here's the help for that option in firefox


On Wed, Jun 10, 2009 at 3:57 PM, Saikat Kanjilal <[email protected]> wrote:






Its definitely not an image,its actually open type font and other types of fonts and glyph data, additionally I want to return a character buffer through stdout back to the caller (meaning I am not actually returning a file but a stream containing this character buffer containing binary 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.



-- 
--
The PixAddixImage Collector suite:
http://groups-beta.google.com/group/pixaddix

SqliteImporter and SqliteReplicator: Command line utilities for Sqlite



---
On Wednesday, March 1, 2006, at a hearing on the proposed Constitutional Amendment to prohibit gay marriage, Jamie Raskin, professor of law at AU, was requested to testify.

At the end of his testimony, Republican Senator Nancy Jacobs said: "Mr. Raskin, my Bible says marriage is only between a man and a woman. What do you have to say about that?"


Raskin replied: "Senator, when you took your oath of office, you placed your hand on the Bible and swore to uphold the Constitution. You did not place your hand on the Constitution and swear to uphold the Bible."


The room erupted into applause.
http://www.reddawn.net/~jsprenkl/Sqlite


_________________________________________________________________
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.