Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 28403 invoked from network); 23 Jun 2008 04:41:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 04:41:48 -0000 Received: (qmail 33500 invoked by uid 500); 23 Jun 2008 04:41:50 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 33461 invoked by uid 500); 23 Jun 2008 04:41:50 -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 33450 invoked by uid 99); 23 Jun 2008 04:41:50 -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:41:50 -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.243 as permitted sender) Received: from [209.85.198.243] (HELO rv-out-0708.google.com) (209.85.198.243) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 04:40:58 +0000 Received: by rv-out-0708.google.com with SMTP id k29so8108733rvb.0 for ; Sun, 22 Jun 2008 21:41:17 -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=79p1GvAiWbDUHw9PdLcxklTLlAi21F1Ru0xmswZuDRQ=; b=Re1BiU4/KFPeX+glR+rnPvYCrI0KAzZRIdQi9vhpZzO2KnQunkSjA6BELDhU6m5w0S shyiL2G82F1CqXIEf3hG6bCj4pqKkCEt9/99sIKBnL58xbHjfLTu9sXz66PytgSDL/Iw GXFJvNi85VS8pU9a4C4odJb6HW76/ZsHXx+zo= 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=PP7m+bSGwjbVg0n2Dzh9v0MIbsAzwX4FUIjd//moyCSfmFM+Z9gWPW1JXOk/YOWzgV U4hymmfjk+KhDLL+DM1HzMyRq76pzTWbR+voc4lqidoYg93hRdXJJacfU4cDqXC/R1UD FIVxQHe7rzD8p8Zveh1l3wOCRpFWm4LEtOuBI= Received: by 10.140.192.9 with SMTP id p9mr12000475rvf.114.1214196077441; Sun, 22 Jun 2008 21:41:17 -0700 (PDT) Received: by 10.115.91.19 with HTTP; Sun, 22 Jun 2008 21:41:17 -0700 (PDT) Message-ID: Date: Sun, 22 Jun 2008 21:41:17 -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: <6b6419750806222109n32c98699se58bd624ac82de9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6b6419750806222109n32c98699se58bd624ac82de9@mail.gmail.com> X-Google-Sender-Auth: 01910a71ac16ca13 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jun 22, 2008 at 9:09 PM, Patrick Aljord wrote: > Hey all, > > I'm trying to store openid associations in couchdb docs, it works ok > except for stocking the openid secret and server_url because they are > blobs so I get an error (at least with couchrest which is the > interface I use). What would be the best way to deal with those blobs? > Attachments I guess? any tips welcome. Pat, I'd be interested to see more details about your error, and what you are trying to do generally. I can't think of a reason why CouchDB would have problems storing your data. The attachment API is generally useful for larger files that you wouldn't want to access wrapped in JSON - you should be able to solve your problem without resorting to attachments. Can you give a specific example of the data you are storing and how you are attempting to do it? Maybe posting an example IRB session to pastie.org would be helpful. There very well could be some edge cases in CouchRest that I haven't run into yet, and seeing your code in action will help. Chris -- Chris Anderson http://jchris.mfdz.com