0
您好,我試過每種解決方案後都很累,但無法使其工作。URL.createObjectURL()根本不能在任何瀏覽器中工作
在我的角度HTTP調用
$http({
method: 'GET',
url: API_URL + 'v1/file/' + candidateId + '/download',
headers: {
'authToken': AuthService.getToken(),
},
responseType: 'arraybuffer'
})
.then(function onSuccess(response) {
successCallback(response);
},
function onError(response) {
errorCallback(response);
});
,並在此代碼
vm.onSuccessDownloadResume = function(response) {
var blob = new Blob([response.data], {type: response.headers('content-type')});
var objectUrl = URL.createObjectURL(blob);
window.open(objectUrl);
};
我試圖webkitURL.createObjectURL(BLOB)的成功,它的做工精細鍍鉻只不過URL.createObject是根本不工作。
獲取消息 URL.createObjectURL()不是()函數
感謝
感謝里卡多,但仍然沒有工作。 –