function blob2base64(blob) {
  return new Promise(function (resolve, reject) {
    var reader = new FileReader();
    reader.readAsDataURL(blob);

    reader.onloadend = function () {
      resolve(reader.result);
    };
  });
}
Convert a blob to a base64 encoded string
@param {Blog} blob
@returns {string}
@memberof Core