Is there a way that you can convert and view a PDF file stored in Long BLOB column in MYSQL with the help of Angular 6 ? (Back-end: Spring MVC & Front-end: Angular6)

     .get('api/load',{ responseType: 'text'}).subscribe(data=>{
      this.pdf_ = data;
      console.log('Pdf is '+ data);
      this.pdfViewer = new File([this.pdf_], 'One.pdf', { 
      type: 'application/pdf', lastModified:Date.now()}); 
      console.log(' PDF is'+this.pdfViewer);

Output I am getting is Pdf is [ ]

0 Answers