Good morning.
I'm working with angularjs version 1.5, and am having trouble generating PDF. The response gets a byte array would like some help.
this.TesteService.relatorio().$promise.then((response) => {
console.log('response',response);
var array = Object.values(response);
console.log('array',array);
var file = new Blob(array, {type: 'application/pdf'});
console.log('file',file);
var fileURL = URL.createObjectURL(file);
console.log('fileURL',fileURL);
this.$window.open(fileURL);
});
How do I currently display the sheets of the file but they are blank and the error occurs:
Error: Command token too long: 128