Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 96768 invoked from network); 13 Jul 2006 19:22:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jul 2006 19:22:25 -0000 Received: (qmail 22125 invoked by uid 500); 13 Jul 2006 19:22:20 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 21911 invoked by uid 500); 13 Jul 2006 19:22:19 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 21900 invoked by uid 99); 13 Jul 2006 19:22:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 12:22:19 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of csengstock@gmail.com designates 64.233.162.202 as permitted sender) Received: from [64.233.162.202] (HELO nz-out-0102.google.com) (64.233.162.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2006 12:22:18 -0700 Received: by nz-out-0102.google.com with SMTP id n29so119298nzf for ; Thu, 13 Jul 2006 12:21:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TAfB3r0ylWbmkK6Xovq6hCSmDH5A50la8sJ7bRE1uWD3/70m2iM09jQeBaGJP7oSSZC1IjGk30qUJnxtgotM6sEa0075qeR7frQ58nIjukHVoll6j67sufVkap8/ZNoIXvLpiyFCCa016GX9xNgwo1nOzlcOUc4PEwjEleurDyk= Received: by 10.64.149.15 with SMTP id w15mr473236qbd; Thu, 13 Jul 2006 12:21:57 -0700 (PDT) Received: by 10.65.124.14 with HTTP; Thu, 13 Jul 2006 12:21:57 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2006 21:21:57 +0200 From: "Christian Sengstock" To: users@cocoon.apache.org Subject: How to send a "mime-type: image/jpeg" response generated from a BufferedImage MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello list, in my application i generate dynamically a BufferedImage object and i want to complete the pipeline with sending the image as a "mime-type: image/jpeg" response. At the moment i have a matcher which takes the request and calls a flowScript function which in turn handles the dynamic creation of the BufferedImage. Afterwards i save the image to disk and send the URI of the image-file via the cocoon.sendPage( ) function to the sitemap, where a reader handles the proper response as a mime-type image/jpeg. This is working for me but i thought that there might be a better approach to do this. Maybe without saving the BufferedImage to disk. Can anybody give me a hint how to create a "mime-type: image" response out of a BufferedImage? Maybe it's possible by extending a reader or by using a serializer? Thanx a lot, Chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org