Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B280DCB4 for ; Tue, 21 Aug 2012 16:03:15 +0000 (UTC) Received: (qmail 90092 invoked by uid 500); 21 Aug 2012 16:03:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 90037 invoked by uid 500); 21 Aug 2012 16:03:13 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 90026 invoked by uid 99); 21 Aug 2012 16:03:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 16:03:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 206.225.164.30 as permitted sender) Received: from [206.225.164.30] (HELO EXHUB020-3.exch020.serverdata.net) (206.225.164.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 16:03:07 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.56]) by EXHUB020-3.exch020.serverdata.net ([206.225.164.30]) with mapi; Tue, 21 Aug 2012 09:02:45 -0700 From: Jens Alfke To: "user@couchdb.apache.org" Date: Tue, 21 Aug 2012 09:02:43 -0700 Subject: Re: Base64 attachment via Futon Thread-Topic: Base64 attachment via Futon Thread-Index: Ac1/tmbCOpyikODRQ9a8ZSKa9DJKSA== Message-ID: <5F64F1AA-9A7B-4552-950D-8CDF335B4F67@couchbase.com> References: <326B8AB680B15249B86A3DB3D1FBB3EE07EA648B@NAMAIL03.sapient.com> In-Reply-To: <326B8AB680B15249B86A3DB3D1FBB3EE07EA648B@NAMAIL03.sapient.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 On Aug 21, 2012, at 8:22 AM, Stephen Ohimor wrote: > Context: I'm posting a document with an attachment. The attachment is a= Base64 url-safe encoded string. I am posting to a local CouchDB server (R= 15B) via the Futon Interface. Why use that API? My understanding is that Futon's API is considered intern= al, and not supported. It's quite easy to upload attachments using a regular PUT/POST to the docum= ent URL. You can embed the base64'd attachment in the JSON, or you can post= in MIME multipart format and send the attachment raw. =97Jens PS: Also, I just noticed you said R15B =97 that's the version of *Erlang*, = not of CouchDB. To see the CouchDB version, GET /.=