有没有一种方法可以借助Angular 6转换和查看MYSQL的Long BLOB列中存储的PDF文件? (后端:Spring MVC和前端: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);
我得到的输出是Pdf是[]