How to download the compressed file by clicking the button on the front-end page?

the returned information of the API given at the backend is shown in figure

if you want to realize the function of clicking to download a compressed file, how to solve this return information. Or what needs to be changed in the background

Sep.29,2021

just mark the type as binary stream in the response header

Menu