code: function readBlobAsDataURL(blob, path) {
                      var reader = new FileReader();
                      reader.onloadend = function(loadedEvent) {
                          var dataURL = loadedEvent.target.result;
                          var blobtype = 'Blob';
                          if (blob instanceof File) {
                              //blobtype = 'File';
                          }
                          updateEncodedBlob(dataURL, path, blobtype);
                      };
                      reader.readAsDataURL(blob);
                  }
docs: Convert a blob to a data URL.
  @param {Blob} blob to convert.
  @param {String} path of blob in object being encoded.