在一个角度应用程序中显示BLOB(.pdf)
$http.post<embed src>
联署材料:
$http.post('/postUrlHere',{myParams}).success(function (response) {
var file = new Blob([response], {type: 'application/pdf'});
var fileURL = URL.createObjectURL(file);
$scope.content = fileURL;});fileURL
HTML:
<embed src="{{content}}" width="200" height="200"></embed><embed>
相关分类