_blobToString(blob) {
    return new Promise((resolve, reject) => {
      const reader = new FileReader();
      reader.onloadend = function(e) {
        resolve(e.target.result);
      };
      reader.onerror = function() {
        reject(new Error('Unable to convert blob to string.'));
      };
      reader.readAsDataURL(blob);
    });
  }
/**
   * Converts blob data to base64 string.
   *
   * @param {Blob} blob File or blob object to be translated to string
   * @return {Promise} Promise resolved to a base64 string data from the file.
   */
Converts blob data to base64 string.
@param {Blob} blob File or blob object to be translated to string
@return {Promise} Promise resolved to a base64 string data from the file.
Converts blob data to base64 string . @param { Blob } blob File or blob object to be translated to string @return { Promise } Promise resolved to a base64 string data from the file .
_blobToString(blob) {
    return new Promise((resolve, reject) => {
      const reader = new FileReader();
      reader.onloadend = function(e) {
        resolve(e.target.result);
      };
      reader.onerror = function() {
        reject(new Error('Unable to convert blob to string.'));
      };
      reader.readAsDataURL(blob);
    });
  }
_blobToString ( blob ) { return new Promise ( ( resolve , reject ) => { const reader = new FileReader ( ) ; reader . onloadend = function ( e ) { resolve ( e . target . result ) ; } ; reader . onerror = function ( ) { reject ( new Error ( 'Unable to convert blob to string.' ) ) ; } ; reader . readAsDataURL ( blob ) ; } ) ; }
Converts blob data to base64 string.
Converts blob data to base64 string .