Download file when send request

Hi guys,
Now I have an interface which use to download file. Is there any way to download file when I send the request but without click [Send and download] button ? For example, can I do this with writing some code in the ‘Test handling’ area or other programming way ?

@su.ziying https://documenter.getpostman.com/view/3407886/RWgp1fB5

I am not able to open the attached link it is throwing 404 error . I have similar requirement can you please help.

Weird, the link isn’t giving 404 for me.

But anyway, Just go to the app click on “New” > “Templates” > Search for “Write Response” and use that template by clicking “Run in Postman”.

The template has all the instructions that will be required.

Its not working with octet stream what can we do to complete that.