code: function(id, filename, responseType){
      	return $http({
          method: 'GET',
          url: '/dataprovider/' + id + '/' + encodeURIComponent(filename),
          responseType: responseType
        });
      }
docs: For the response type check https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType, "text", "arraybuffer", "blob", "json"