Failed to load PDF document - Angular JS - BLOB Failed to load PDF document - Angular JS - BLOB angularjs angularjs

Failed to load PDF document - Angular JS - BLOB


problem is there in controller.{responseType:'arraybuffer'} is verymuch required. For $http.get - It should be second parameter.For $http.post - It should be third parameter.

In above case, i am using $http.post and i have passed {responseType:'arraybuffer'} as second parameter.

$http.post('/api/Sample/GetTestFile', {responseType:'arraybuffer'})

Corrected code

$http.post('/api/Sample/GetTestFile','', {responseType:'arraybuffer'})