Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B31AC6CCF for ; Fri, 15 Jul 2011 05:01:43 +0000 (UTC) Received: (qmail 50433 invoked by uid 500); 15 Jul 2011 05:01:43 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 50232 invoked by uid 500); 15 Jul 2011 05:01:34 -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 50208 invoked by uid 99); 15 Jul 2011 05:01:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 05:01:26 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,LOTS_OF_MONEY,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of j.joachimsthal@1hippo.com designates 64.18.2.177 as permitted sender) Received: from [64.18.2.177] (HELO exprod7og112.obsmtp.com) (64.18.2.177) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 15 Jul 2011 05:01:16 +0000 Received: from mail-pz0-f43.google.com ([209.85.210.43]) (using TLSv1) by exprod7ob112.postini.com ([64.18.6.12]) with SMTP ID DSNKTh/JhpZVXr4dQOc+iOVvKFLmNMBQ+qBW@postini.com; Thu, 14 Jul 2011 22:00:56 PDT Received: by pzk1 with SMTP id 1so1310028pzk.30 for ; Thu, 14 Jul 2011 22:00:54 -0700 (PDT) Received: by 10.142.132.14 with SMTP id f14mr1318177wfd.400.1310706054377; Thu, 14 Jul 2011 22:00:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.155.19 with HTTP; Thu, 14 Jul 2011 22:00:34 -0700 (PDT) In-Reply-To: <4E1F1C8F.3090207@gmail.com> References: <4E1F1C8F.3090207@gmail.com> From: Jasha Joachimsthal Date: Fri, 15 Jul 2011 07:00:34 +0200 Message-ID: Subject: Re: Pls Help - Serializing images returned from web services To: users@cocoon.apache.org Content-Type: multipart/alternative; boundary=000e0cd29cb4c6afbc04a81488c3 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd29cb4c6afbc04a81488c3 Content-Type: text/plain; charset=ISO-8859-1 On 14 July 2011 18:42, insight49@gmail.com wrote: > Would someone be able to help me understand how to serialize images (or > other binary data) returned from web services that consume posted data? > > I'm trying to post some data to Goggle Chart API (using CInclude > Transformer includexml), but Google sends back an image, which can't be > serialized. (Using Get works, but has a URL character imitation). > > Does someone have a serializer class for this? > If I understand you correctly, you do a POST request to Google Chart API and it only returns the binary data for an image. This can't be serialized, because it can't be parsed as XML to start with. [1] What's your use case for the chart? Is it a part of a webpage or do you include it in a PDF? [1] http://cocoon.apache.org/2.1/userdocs/serializers.html Jasha Joachimsthal Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466 US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free) www.onehippo.com > > Thanks very much for your help, > > Dan > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.**apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --000e0cd29cb4c6afbc04a81488c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 14 July 2011 18:42, insight49@gmail.com <insight49@gmail.com> wrote:
Would someone be able to help me understand how to serialize images (or oth= er binary data) returned from web services that consume posted data?

I'm trying to post some data to Goggle Chart API (using CInclude Transf= ormer includexml), but Google sends back an image, which can't be seria= lized. (Using Get works, but has a URL character imitation).

Does someone have a serializer class for this?

If I understand you correctly, you do a POST request to Google Char= t API and it only returns the binary data for an image. This can't be s= erialized, because it can't be parsed as XML to start with. [1]
What's your use case for the chart? Is it a part of a webpage or d= o you include it in a PDF?=A0


Jasha Joachimsthal

Europe= - Amsterdam - Oosteinde 11, 1017 WT Amsterdam -=A0+31(0)20 522 4466
US - Boston - 1 Broadway, Cambridge, MA 02142 -=A0+1 877 414 4776 (toll fre= e)

www.onehippo.com

Thanks very much for your help,

Dan


-------------------------------------------------------------= --------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


--000e0cd29cb4c6afbc04a81488c3--