function loadData(path) {
  if (path.startsWith(BASE64_PREFIX)) {
    return Buffer.from(path.substring(BASE64_PREFIX.length), 'base64');
  }
  return fs.readFileSync(path);
}
If the path starts with the base64 prefix it will create a buffer from the base64 string
@param {string} path