Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 28980 invoked from network); 23 Jun 2008 04:46:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 04:46:37 -0000 Received: (qmail 36724 invoked by uid 500); 23 Jun 2008 04:46:39 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 36705 invoked by uid 500); 23 Jun 2008 04:46:39 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 36694 invoked by uid 99); 23 Jun 2008 04:46:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jun 2008 21:46:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 209.85.198.246 as permitted sender) Received: from [209.85.198.246] (HELO rv-out-0708.google.com) (209.85.198.246) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 04:45:47 +0000 Received: by rv-out-0708.google.com with SMTP id k29so8110114rvb.0 for ; Sun, 22 Jun 2008 21:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=ZOSPHZaDiXh75ll0zNUbqrriz2MN6ymqJc9TK3r/jU8=; b=MWxkeU99oTk0m8p5EfaA2ig2fdxrMazKKj8XOmOIX3K/Uu4PVEJFQ1taYLzOPTORSk ydndv+wDb0yarhEbmwioKKL0JHA6mdSEHvko/pckd//KrnKSMqOrJL3WeMEaV+bfLWRU dEzoi4fNZqpwJzvtDsbSGVrKPzaKC9Q7m1N+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=nUD+dk01F8iRClrGHta1ahFW1mhPzsMAVxJYHBmvB0FYdo62Wtt8ipvDEHcEULLJGX uO53K8HNBfjIep0y2fx7li6UsylP85euy2dC6YPJ3wSIiBjDDyCJSAnqRcvCpvO0m/A3 7LBDVItyOwUuEt1pV4elC5AZax91eH5OM19Zc= Received: by 10.141.123.4 with SMTP id a4mr11951221rvn.294.1214196366370; Sun, 22 Jun 2008 21:46:06 -0700 (PDT) Received: by 10.115.91.19 with HTTP; Sun, 22 Jun 2008 21:46:06 -0700 (PDT) Message-ID: Date: Sun, 22 Jun 2008 21:46:06 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: couchdb and blobs (using only couchdb or couchrest) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6b6419750806222109n32c98699se58bd624ac82de9@mail.gmail.com> <6b6419750806222140n32a63dcby7b4ebcc1aaab65f9@mail.gmail.com> X-Google-Sender-Auth: 63eacca6f7039384 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jun 22, 2008 at 9:43 PM, Chris Anderson wrote: > On Sun, Jun 22, 2008 at 9:40 PM, Patrick Aljord wrote: > >> JSON::GeneratorError: source sequence is illegal/malformed > > I hate those! (But they are not my bug...) More context: I think they are caused when the byte-array you feed JSON contains sequences which don't map to a valid Unicode code-point. You might try a base64 encoded version of the blob. That's the standard way to stringify this sort of thing anyway. > > -- > Chris Anderson > http://jchris.mfdz.com > -- Chris Anderson http://jchris.mfdz.com