Http get and put binary data (CouchDB attachments) from javascript

I need to download, edit and download (via HTTP PUT) binary drops in CouchDB (as attachments) from the javascript CouchApp browser.

My google-fu does not allow me to find anything even remotely similar to this: /

The current solution involves using Silverlight, and I want to switch to simple browsers (Safari, Mobile Safari (iOS), IE 9, Opera 11, etc.)

There is a solution for loading data in Chrome ( Cross-domain binary email data in javascript ), but I do not want to stick to this particular browser.

+5
source share
1 answer

Javascript is a bit inconvenient for working with binary data, but it is still possible.

- CouchDB base64 . , inline .

javascript base64 . CouchDB Futon. /_utils/script/base64.js.

+4

All Articles