der download klappt hiermit:
downLoadFile(data: any, type: string) {
let blob = new Blob([data], { type: type});
let url = window.URL.createObjectURL(blob);
let a_for_download = document.createElement("a");
a_for_download.href = url;
a_for_download.download = "output.xml";
document.body.appendChild(a_for_download);
a_for_download.click();
URL.revokeObjectURL(url);
}
jetzt bin gespannt ob das gzip auch klappt.