jQuery AJAX uses the XMLHttpRequest object to download the file stream so that it can get the file contents without reloading the entire page. You can do this using the $.ajax() method of jQuery, as follows: 1. Create an XMLHttpRequest object(xhr).
2. open a connection using the xhr.open() method to send requests to the server.
3. Use xhr.responseType = "blob" to set the response type to file stream.
4. Process the response using the xhr.onload() method.
5. Create a file URL using the url.createObjecturl() method.
6. Download the file using the href attribute of the a tag.