function fetch(filename) {
        var att = atts[filename];
        var path = encodeDocId(doc._id) + '/' + encodeAttachmentId(filename) +
          '?rev=' + doc._rev;
        return ajaxPromise(opts, {
          method: 'GET',
          url: genDBUrl(host, path),
          binary: true
        }).then(function (blob) {
          if (opts.binary) {
            return blob;
          }
          return new PouchPromise$1(function (resolve) {
            blobToBase64(blob, resolve);
          });
        }).then(function (data) {
          delete att.stub;
          delete att.length;
          att.data = data;
        });
      }
// receiving attachments as base64-encoded strings.
receiving attachments as base64-encoded strings.
receiving attachments as base64 - encoded strings .
function fetch(filename) {
        var att = atts[filename];
        var path = encodeDocId(doc._id) + '/' + encodeAttachmentId(filename) +
          '?rev=' + doc._rev;
        return ajaxPromise(opts, {
          method: 'GET',
          url: genDBUrl(host, path),
          binary: true
        }).then(function (blob) {
          if (opts.binary) {
            return blob;
          }
          return new PouchPromise$1(function (resolve) {
            blobToBase64(blob, resolve);
          });
        }).then(function (data) {
          delete att.stub;
          delete att.length;
          att.data = data;
        });
      }
function fetch ( filename ) { var att = atts [ filename ] ; var path = encodeDocId ( doc . _id ) + '/' + encodeAttachmentId ( filename ) + '?rev=' + doc . _rev ; return ajaxPromise ( opts , { method : 'GET' , url : genDBUrl ( host , path ) , binary : true } ) . then ( function ( blob ) { if ( opts . binary ) { return blob ; } return new PouchPromise$1 ( function ( resolve ) { blobToBase64 ( blob , resolve ) ; } ) ; } ) . then ( function ( data ) { delete att . stub ; delete att . length ; att . data = data ; } ) ; }
receiving attachments as base64-encoded strings.
receiving attachments as base64 - encoded strings .