Skip to main content



      Home
Home » Archived » BIRT » images in BIRT_VIEWER_IMAGE_DIR
images in BIRT_VIEWER_IMAGE_DIR [message #263291] Fri, 14 December 2007 11:24 Go to next message
Eclipse UserFriend
Originally posted by: machal.ofac.ch

Hi,

I call the birt 2.2.1.1 engine through a servlet for security reasons, this
servlet make many controles and if it's OK get the stream from de birt
engine et put it in return to its response.

I've got a problem with the images which do not appear whith this version of
birt (it was OK with 2.0). In the BIRT_VIEWE_IMAGE_DIR I see that now images
are in au subdirectory, for example :

5Dhbe5EzA6Z3ja3CLehc_2v/design52265226116d72d3a0a10

and when the HTML tag IMG call for the url :

/birt2211/preview?__imageID=design52265226116d72d3a0a10

no image is found.

Is there now a controle with session or cokkie which do not allow my access
?

regards

JF
Re: images in BIRT_VIEWER_IMAGE_DIR [message #263311 is a reply to message #263291] Fri, 14 December 2007 15:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Are you calling the webviewer or did you write your own servlet.
If you wrote your own you can set the image directory like:
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_HTML) ;
//options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_PDF );
options.setOutputStream(resp.getOutputStream());
options.setBaseImageURL(req.getContextPath()+"/images");
options.setImageDirectory(sc.getRealPath("/images"));
task.setRenderOption(options);


Jason


Machal Jean-François wrote:
> Hi,
>
> I call the birt 2.2.1.1 engine through a servlet for security reasons, this
> servlet make many controles and if it's OK get the stream from de birt
> engine et put it in return to its response.
>
> I've got a problem with the images which do not appear whith this version of
> birt (it was OK with 2.0). In the BIRT_VIEWE_IMAGE_DIR I see that now images
> are in au subdirectory, for example :
>
> 5Dhbe5EzA6Z3ja3CLehc_2v/design52265226116d72d3a0a10
>
> and when the HTML tag IMG call for the url :
>
> /birt2211/preview?__imageID=design52265226116d72d3a0a10
>
> no image is found.
>
> Is there now a controle with session or cokkie which do not allow my access
> ?
>
> regards
>
> JF
>
>
Re: images in BIRT_VIEWER_IMAGE_DIR [message #263371 is a reply to message #263311] Mon, 17 December 2007 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: machal.ofac.ch

No I call the Webviewer with preview servlet

JF


"Jason Weathersby" <jasonweathersby@alltel.net> a
Re: images in BIRT_VIEWER_IMAGE_DIR [message #263409 is a reply to message #263371] Mon, 17 December 2007 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

The WebViewer uses the sessionid as part of the directory name.
Is there a chance that your sessionid is changing? The viewer does this
in order to clean up properly.

Jason

Machal Jean-François wrote:
> No I call the Webviewer with preview servlet
>
> JF
>
>
> "Jason Weathersby" <jasonweathersby@alltel.net> a écrit dans le message de
> news: fjupa3$9b3$1@build.eclipse.org...
>> Are you calling the webviewer or did you write your own servlet.
>> If you wrote your own you can set the image directory like:
>> HTMLRenderOption options = new HTMLRenderOption();
>> options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_HTML) ;
>> //options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_PDF );
>> options.setOutputStream(resp.getOutputStream());
>> options.setBaseImageURL(req.getContextPath()+"/images");
>> options.setImageDirectory(sc.getRealPath("/images"));
>> task.setRenderOption(options);
>>
>>
>> Jason
>>
>>
>> Machal Jean-François wrote:
>>> Hi,
>>>
>>> I call the birt 2.2.1.1 engine through a servlet for security reasons,
>>> this servlet make many controles and if it's OK get the stream from de
>>> birt engine et put it in return to its response.
>>>
>>> I've got a problem with the images which do not appear whith this version
>>> of birt (it was OK with 2.0). In the BIRT_VIEWE_IMAGE_DIR I see that now
>>> images are in au subdirectory, for example :
>>>
>>> 5Dhbe5EzA6Z3ja3CLehc_2v/design52265226116d72d3a0a10
>>>
>>> and when the HTML tag IMG call for the url :
>>>
>>> /birt2211/preview?__imageID=design52265226116d72d3a0a10
>>>
>>> no image is found.
>>>
>>> Is there now a controle with session or cokkie which do not allow my
>>> access ?
>>>
>>> regards
>>>
>>> JF
>
>
Previous Topic:If function error
Next Topic:Using Eclipse BIRT with source control
Goto Forum:
  


Current Time: Wed Jul 23 18:07:10 EDT 2025

Powered by FUDForum. Page generated in 0.03459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top