In Java REST API:-
response.setContentType("application/oct-stream"); response.setHeader("Content-Disposition", "inline; filename=\""file.zip\"");
If I receive the response in angularjs $http service, how can I make it downloadable. If only content was returned from Java APi, downloading in javascript is achievable. But how to work with it when a complete file is returned.