How to download file from server via AJAX

Hi every one, I am working on CRM based on php. CRM Application accept only ajax request and url defined in routes. I created a route, request send to server, on server i used get_file_content to read file, on client side i see binary code.
Problem: I tried alot, google alot, to mange download file from server response. in console i see binary data. I am looking help, if some one guide me how to manage file download from server response. Condition: i have only option to download via ajax response.

Regards

Sponsor our Newsletter | Privacy Policy | Terms of Service