I have a product some of whose methods are (or need to be) directly exposed as A-refs. How can I set the correct MIME type for them? More specifically the methods are going to be dynamically generating and returning strings (7bit and 8bit) which I need associated with the appropriate MIME types (eg text/plain, image/jpeg, etc). -- J C Lawrence ---------(*) Satan, oscillate my metallic sonatas. claw@kanga.nu He lived as a devil, eh? http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.
J C Lawrence wrote at 2004-2-11 17:52 -0500:
... More specifically the methods are going to be dynamically generating and returning strings (7bit and 8bit) which I need associated with the appropriate MIME types (eg text/plain, image/jpeg, etc).
Returning to whom? to "ZPublisher" (i.e. in response to a WEB request)? If so, you can use "self.REQUEST.RESPONSE.setHeader('Content-Type',...)". -- Dieter
participants (2)
-
Dieter Maurer -
J C Lawrence