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