src/Jaspersoft/Service/ThumbnailService.php
public function getResourceThumbnails(array $uris, $defaultAllowed = false)
    {
        $result = array();
        $url = self::makeUrl();
        $postString = Util::query_suffix(array("uri" => $uris, "defaultAllowed" => $defaultAllowed));

        $response = $this->service->makeRequest($url, array(200), 'POST', $postString, true, 'application/x-www-form-urlencoded');
        $data = json_decode($response['body']);
        if (isset($data)) {
            foreach ($data as $thumbnail) {
                $result[] = ResourceThumbnail::createFromJSON($thumbnail);
            }
        }
        return $result;
    }
public function getResourceThumbnails(array $uris, $defaultAllowed = false)
    {
        $result = array();
        $url = self::makeUrl();
        $postString = Util::query_suffix(array("uri" => $uris, "defaultAllowed" => $defaultAllowed));

        $response = $this->service->makeRequest($url, array(200), 'POST', $postString, true, 'application/x-www-form-urlencoded');
        $data = json_decode($response['body']);
        if (isset($data)) {
            foreach ($data as $thumbnail) {
                $result[] = ResourceThumbnail::createFromJSON($thumbnail);
            }
        }
        return $result;
    }
public function getResourceThumbnails ( array $ uris , $ defaultAllowed = false ) { $ result = array ( ) ; $ url = self :: makeUrl ( ) ; $ postString = Util :: query_suffix ( array ( "uri" => $ uris , "defaultAllowed" => $ defaultAllowed ) ) ; $ response = $ this -> service -> makeRequest ( $ url , array ( 200 ) , 'POST' , $ postString , true , 'application/x-www-form-urlencoded' ) ; $ data = json_decode ( $ response [ 'body' ] ) ; if ( isset ( $ data ) ) { foreach ( $ data as $ thumbnail ) { $ result [ ] = ResourceThumbnail :: createFromJSON ( $ thumbnail ) ; } } return $ result ; }
Obtain a set of ResourceThumbnail objects representing the thumbnails for several reports,
these ResourceThumbnail objects will contain the image data as a Base64 String only

@param array $uris
@param bool $defaultAllowed
@return array
Obtain a set of ResourceThumbnail objects representing the thumbnails for several reports these ResourceThumbnail objects will contain the image data as a Base64 String only