how to upload a lot of msword documents to couchdb , a msword as a attachment of a document

82 views
Skip to first unread message

Goog Jobs

unread,
Mar 3, 2012, 3:52:31 AM3/3/12
to couc...@googlegroups.com
Hi,people!
how to upload a lot of msword documents to couchdb concurrently or one by one ,for example 1000 docs[ a msword as a attachment of a document]??? THX!

Goog Jobs

unread,
Mar 3, 2012, 9:11:44 AM3/3/12
to couc...@googlegroups.com
in bulk to copy with the attachments , one document one attachment ,  please give me some methods!

在 2012年3月3日星期六UTC+8下午4时52分31秒,Goog Jobs写道:

Nils Breunese

unread,
Mar 3, 2012, 10:33:28 AM3/3/12
to couc...@googlegroups.com
Have you checked the documentation for attachments?

https://wiki.apache.org/couchdb/HTTP_Document_API#Attachments

Your question sounds more like a general CouchDB question than a CouchApp question, so you might want to join the CouchDB users mailinglist for questions like these.

https://couchdb.apache.org/community/lists.html

Nils.
________________________________________
Van: couc...@googlegroups.com [couc...@googlegroups.com] namens Goog Jobs [goog...@gmail.com]
Verzonden: zaterdag 3 maart 2012 15:11
Aan: couc...@googlegroups.com
Onderwerp: Re: how to upload a lot of msword documents to couchdb , a msword as a attachment of a document
------------------------------------------------------------------------
VPRO www.vpro.nl
------------------------------------------------------------------------

Goog Jobs

unread,
Mar 3, 2012, 8:05:10 PM3/3/12
to couc...@googlegroups.com
i hava seen it, i want to do a testing,  so want to use the script in bash.

在 2012年3月3日星期六UTC+8下午4时52分31秒,Goog Jobs写道:

J Chris Anderson

unread,
Mar 3, 2012, 8:21:45 PM3/3/12
to couc...@googlegroups.com
with bash you would write a script that iterates over your msword files to upload, and then uses either curl or wget, or something similar, to upload the file to a CouchDB attachment.

you want to PUT to /yourdb/$FILENAME/msword.doc with the file in binary mode.

Chris

--
You received this message because you are subscribed to the Google Groups "CouchApp" group.
To view this discussion on the web visit https://groups.google.com/d/msg/couchapp/-/nUvLoe64vIYJ.

To post to this group, send email to couc...@googlegroups.com.
To unsubscribe from this group, send email to couchapp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/couchapp?hl=en.

Goog Jobs

unread,
Mar 3, 2012, 8:42:33 PM3/3/12
to couc...@googlegroups.com
J, can u give a  example? THX!

在 2012年3月3日星期六UTC+8下午4时52分31秒,Goog Jobs写道:
Reply all
Reply to author
Forward
0 new messages