|
Re: Image tutorial please!! [message #830728 is a reply to message #830371] |
Wed, 28 March 2012 02:02  |
|
Do not set an imagehandler if you want to use the default file image
handler. Do not set a base url in this case, just the image directory
to the full mapped drive directory.
Jason
On 3/27/2012 10:44 AM, jo moreau wrote:
> Hi everyone,
>
> I'm working on a report that is sent to a SWT browser by an Byte Array
> outputStream and I cannot render images. I'm using this code:
>
> HTMLRenderOption htmo = new HTMLRenderOption();
> ByteArrayOutputStream bos = new ByteArrayOutputStream();
> htmo.setOutputStream(bos);
> htmo.setBaseImageURL(some-mapped-network-folder);
> htmo.setImageDirectory(some-directory);
> htmo.setSupportedImageFormats("PNG");
> htmo.setImageHandler(new HTMLImageHandler());
>
>
> So this is what I use to set the HTML render options. But it doesn't
> work. What am I doing wrong here. I'm using BIRT 3.7.1 and sorry for any
> typo, I didn't copy-paste the code.
>
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02169 seconds