angularjs如何接收POST方法返回的二进制数据流
1个回答
展开全部
iting Li
试试设置responseType为'arraybuffer'?ArrayBuffer - JavaScript
$http({
url: 'serviceUrl',
method: "POST",
...
responseType: 'arraybuffer'
}).success(function (data, status, headers, config) {
// do something
}).error(function (data, status, headers, config) {
// do something
试试设置responseType为'arraybuffer'?ArrayBuffer - JavaScript
$http({
url: 'serviceUrl',
method: "POST",
...
responseType: 'arraybuffer'
}).success(function (data, status, headers, config) {
// do something
}).error(function (data, status, headers, config) {
// do something
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询