Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ResponseEntity.ok()
- .headers(result.getHttpHeaders())
- .body(new InputStreamResource(result.getInputStream()));
- $http.get("path/pdf",
- { params:params },
- { responseType:"arraybuffer" }
- )
- .then(function(response){
- console.log(response.data);
- var blob = new Blob([response.data], {type: 'application/pdf'});
- FileSaver.saveAs(blob, 'arquivo.pdf');
- });
Add Comment
Please, Sign In to add comment