On server side we have the following code:
public IActionResult DownloadFile(int id) { var fd= _srv.DownloadEmailAttachment(id); return File(fd.Content,