Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 88258 invoked from network); 25 May 2009 08:42:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 May 2009 08:42:15 -0000 Received: (qmail 3566 invoked by uid 500); 25 May 2009 08:42:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 3494 invoked by uid 500); 25 May 2009 08:42:20 -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 3484 invoked by uid 99); 25 May 2009 08:42:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 08:42:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of janlehnardt@googlemail.com designates 209.85.220.163 as permitted sender) Received: from [209.85.220.163] (HELO mail-fx0-f163.google.com) (209.85.220.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 08:42:08 +0000 Received: by fxm7 with SMTP id 7so3559247fxm.11 for ; Mon, 25 May 2009 01:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:x-priority:date:references:x-mailer; bh=+maWmXqQc8yL/xepFZBTVFlBcUW4sqeLgwfV77/Ijkw=; b=UdLAPGc0xVzV2JMGafsUg/ANl6e/S2zd+ciWrXPqiCDVkgDFiiXurwBY3gaez09SxJ qJ0KPCjRkdnmJceaDBrzgQCDjHZm/7d4Ky4+yyH4YEQW4hJdunvDnxycBLK/QDAzoRcU 2SKDht/zSR+LyEHW0VKiyELKbDA1Lbjl7bV8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:x-priority:date :references:x-mailer; b=P03pVHwOf/6flGqVi0BV1Zx0AVZq/GugJY2FxE9KgUjOVyq3olpOyqNz+l/XIuMSs1 59XWz3c8YRgwuuu4BZsSvPYVMRWKUd7Vc06pU327iqTUjlaEEFj+u/M5QH9UKmV6M3dS I5/nQ0rwmunwO2JMz3TNZJ/BAKBTANdqcZ2jU= Received: by 10.102.215.1 with SMTP id n1mr3521913mug.57.1243240908416; Mon, 25 May 2009 01:41:48 -0700 (PDT) Received: from ?192.168.15.119? (c-ca4071d5.112-4-64736c10.cust.bredbandsbolaget.se [213.113.64.202]) by mx.google.com with ESMTPS id e10sm10286234muf.14.2009.05.25.01.41.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 May 2009 01:41:48 -0700 (PDT) Message-Id: <77A5F2DD-10F5-4AB5-8212-964893F922F3@apache.org> From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: I need to know how to parse attachment data X-Priority: 3 Date: Mon, 25 May 2009 10:41:43 +0200 References: X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 25 May 2009, at 06:07, Darrell Huang wrote: > Hi, everyone, I got some trouble in reading the attachment data from > documents with the HTTP API. When an attachment is downloaded with > the API, some extra data is found before and after the attachment > data, and the data can be different at different times. > For example, when I downloaded an attachment with the jpg format > several weeks ago, there is a character sequence "dbc\r\n" preceding > the actual file data, but when I did that today, it was "a24\r\n". > I don't know what this extra data means. Can someone tell me how to > parse the packet content and extract the actual attachment data from > it? Maybe http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1? Cheers Jan --