从角度4下载我的API休息(Spring启动)时无法获取pdf文件内容

时间:2018-06-05 17:12:16

标签: angular spring-boot

我试图在Spring Boot中从我的API REST下载pdf,我在前端以角度4获得pdf,但是当我下载它时,我得到一个空的pdf,这里是来自的示例我使用的代码:

code back-end

code for downloading in angular

recuperation de la réponse

response body

当我尝试使用txt文件时,它工作正常,响应_body包含名称文件。 提前谢谢。

0 个答案:

没有答案
相关问题