在这里,我调用 GetFile ,以 ArrayBuffer{} 对象的形式获取响应,如果我执行 response.errors=undefined,则在网络选项卡中响应为 {"errors":["photoProof Image is not available in the system"]}。
$scope.getDocuments = function(){
Myservice.downLoadDocument('photo', $scope.user.mobileNo).
then(function(response){
})
}
如果我这样做,网络选项卡中的值就会低于该值。
response.byteLength = 64
如何将此 ArrayBuffer 转换为正确的 JSON 格式?
这对我有用:
String.fromCharCode.apply(null, new Uint8Array(replaceThisByYourData))
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)