I tried the converting to blob but it says error in opening the file.
var a = document.createElement("a");
document.body.appendChild(a);
a.href = 'data:application/octet-stream;base64,' + fileData;
a.download = 'fileName.pdf';
a.click();
The above code is working fine but when i tried the code in the below links the solution dint work. can any one please help me where im missing. Because i have spent a day on it.
Failed to load PDF document - Angular JS - BLOB
PDF Blob is not showing content, Angular 2
thanks, priya