couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: I need to know how to parse attachment data
Date Mon, 25 May 2009 06:23:56 GMT
2009/5/24 Darrell Huang <jinhuang@memego.com>:
> 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?
>

can you post a Curl script or otherwise so we can attempt to repeat
your experience? It could be in your HTTP implementation (or it could
be us). The first step to find out is a repeatable test.

Thanks,
Chris

-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message