Konwertuj ArrayBuffer na plik JavaScript

const arrayBufferToFile = (buffer, filename) => {
  const blob = new Blob([buffer], { type: 'application/octet-stream' });
  return new File([blob], filename, { type: 'application/octet-stream' });
};
SunflowerToad