Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 32388 invoked from network); 18 Feb 2005 10:47:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Feb 2005 10:47:01 -0000 Received: (qmail 20534 invoked by uid 500); 18 Feb 2005 10:46:58 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 20476 invoked by uid 500); 18 Feb 2005 10:46:58 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 20461 invoked by uid 99); 18 Feb 2005 10:46:57 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from out1.smtp.messagingengine.com (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Feb 2005 02:46:56 -0800 Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id A4CB4C58D99 for ; Fri, 18 Feb 2005 05:46:53 -0500 (EST) X-Sasl-enc: IwsTgI0x9RbqbCg9suZarA 1108723613 Received: from [10.0.0.3] (elfriedeholmes.demon.co.uk [80.177.165.206]) by www.fastmail.fm (Postfix) with ESMTP id 19C8957034F for ; Fri, 18 Feb 2005 05:46:52 -0500 (EST) Message-ID: <4215C796.9040906@upaya.co.uk> Date: Fri, 18 Feb 2005 10:46:46 +0000 From: Upayavira User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Write binary data to output stream from flow References: <5E091A68F794974CAF431CA31F5AF2CC11EA06@server.bizzdesign.nl> In-Reply-To: <5E091A68F794974CAF431CA31F5AF2CC11EA06@server.bizzdesign.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bart Molenkamp wrote: > >>-----Original Message----- >>From: Upayavira [mailto:uv@upaya.co.uk] >>Sent: Friday, February 18, 2005 11:20 AM >>To: dev@cocoon.apache.org >>Subject: Re: Write binary data to output stream from flow >> >>Bart Molenkamp wrote: >> >>>Yes, it makes even better sense. >>> >>>Would such a more generic, JXPath oriented stream reader be a > > valuable > >>>contribution to Cocoon? >> >>To me it would. Anyone else think so, or have some reasons against? >> >>In fact, the object you pass to the reader (via the XPath string), >>should not be the input stream, but some object that has a >>getInputStream method. That would make better sense. > > > If the object in the context is a bean, the path ./inputStream will make > JXPath invoke getInputStream(), right? And the same for mimeType of > course. So this leaves the user to make the decision if he passes an > object which has a getInputStream() method, or if he passes the stream > directly. Guess so, yes. But it must be possible to configure the mime type manually via the sitemap as well as having it provided by the flowscript. Regards, Upayavira