Konvertieren Sie ArrayBuffer, um JavaScript zu leisten

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