src/Jaspersoft/Service/ReportExecutionService.php
public function getExportOutputResource($executionId, $exportId)
    {
        $url = $this->makeUrl($executionId, false, false, true, true, $exportId);
        $response = $this->service->makeRequest($url, array(200), 'GET', null, true, 'application/json', '*/*');

        $headers = RESTRequest::splitHeaderArray($response['headers']);

        $outputResource = BinaryOutputResource::createFromHeaders($headers);
        $outputResource->binaryContent = $response['body'];

        return $outputResource;
    }
public function getExportOutputResource($executionId, $exportId)
    {
        $url = $this->makeUrl($executionId, false, false, true, true, $exportId);
        $response = $this->service->makeRequest($url, array(200), 'GET', null, true, 'application/json', '*/*');

        $headers = RESTRequest::splitHeaderArray($response['headers']);

        $outputResource = BinaryOutputResource::createFromHeaders($headers);
        $outputResource->binaryContent = $response['body'];

        return $outputResource;
    }
public function getExportOutputResource ( $ executionId , $ exportId ) { $ url = $ this -> makeUrl ( $ executionId , false , false , true , true , $ exportId ) ; $ response = $ this -> service -> makeRequest ( $ url , array ( 200 ) , 'GET' , null , true , 'application/json' , '*/*' ) ; $ headers = RESTRequest :: splitHeaderArray ( $ response [ 'headers' ] ) ; $ outputResource = BinaryOutputResource :: createFromHeaders ( $ headers ) ; $ outputResource -> binaryContent = $ response [ 'body' ] ; return $ outputResource ; }
This method will download an export resource, an array is returned, one with an outputResource object that
describes the type of binary data, and the "body" which is the binary content of the resource.

@param string $executionId
@param string $exportId
@return array
This method will download an export resource an array is returned one with an outputResource object that describes the type of binary data and the body which is the binary content of the resource .