how to request an "image / png" to a webservice.ashx from angular?

0

Can Ajax be used?

in normal mode I would do it in the following way

 <script>
        var app = angular.module('myApp', []);
        app.controller('myCtrl', function($scope, $http) {
          $http({
            method : "GET",
            url: 'http://localhost:4444/WS/wsEstadoReferencia.ashx?ref=VMI17-04635'
          }).then(function mySuccess(response) {
              $scope.imageSource = response.data;
            }, function error(response) {
              $scope.myWelcome = response.statusText;
          });
        });
    </script>
    
asked by emanuelle 14.02.2018 в 17:33
source

0 answers