I have an application that generates a PDF in bytes and converts it to ToBase64String
and sends it through a JSON
so that javascript can open, but in chrome it can not read that file and display the PDF
$.post('/RelatoriosGerais/GerarPDF/', { CategoriaRelatorio: 1 }, function (data) {
if (data.status = true) {
let Pdf = 'data:application/pdf;base64,' + data.arrayByte;
window.open(Pdf, '_blank');
}
where data.arrayByte
is base 64 that is returned via JSON
NOTE: Firefox works