function putAttachment(docId, attachmentId, data, callback) {
        this.db.putAttachment(docId, attachmentId, attachment, 'text/plain', function (err, res) {
            if (!callback) return;
            if (err) {
                return callback(false, err);
            }
            callback(true, response);
        });
    }
/**
     *  Put attachment for a document
     *  currently support base64-encoded string as data
     **/
Put attachment for a document
currently support base64-encoded string as data
Put attachment for a document currently support base64 - encoded string as data
function putAttachment(docId, attachmentId, data, callback) {
        this.db.putAttachment(docId, attachmentId, attachment, 'text/plain', function (err, res) {
            if (!callback) return;
            if (err) {
                return callback(false, err);
            }
            callback(true, response);
        });
    }
function putAttachment ( docId , attachmentId , data , callback ) { this . db . putAttachment ( docId , attachmentId , attachment , 'text/plain' , function ( err , res ) { if ( ! callback ) return ; if ( err ) { return callback ( false , err ) ; } callback ( true , response ) ; } ) ; }
Put attachment for a document
  currently support base64-encoded string as data
Put attachment for a document currently support base64 - encoded string as data