$http({ method: 'GET', url: '/Home/GetEmployeeDetail', params: { ID: $scope.PersonID } }).then(function (result) { var base64 = result.data.Image; $scope.img = base64;