You will need inline attachment (see
http://wiki.apache.org/couchdb/HTTP_Document_API#Inline_Attachments) which
requires encoding in base64 before sending the attachment to CouchDB with
cURL. For that see man base64 (the BASH command to encode in base64). Use
multipart/related multiple cURL to send big attachments (I am not sure it
works directly with bulk operations, but, with few workarounds I am sure a
solution can be found).

I hope it will help.

CGS


On Sun, Mar 4, 2012 at 2:17 AM, goog cheng <[email protected]> wrote:

> in bulk to copy with the attachments , one document one attachment ,
>  please give me some methods!
>

Reply via email to