Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Embedded Image not working in BIRT4.2.2(Embedded Image not working in BIRT4.2.2)
Embedded Image not working in BIRT4.2.2 [message #1052420] Tue, 30 April 2013 03:52 Go to next message
purnima d is currently offline purnima dFriend
Messages: 26
Registered: April 2013
Junior Member

[reply] [-] Description purnima dhulipudi 2013-04-29 08:04:55 EDT
Hi,

Embedded images in the rptdesign are not getting displayed after 4.2.2 upgrade from birt 3.7.0
Environment:

Windows XP
Weblogic 11g
Oracle 11g
Birt runtime - 4.2.2

Options that we tried :-

1.We have tried with setting URI to the image from javascript , this is working for PDF but not working for HTML

2.We have placed the image in webcontent but still not working

3.We have placed the image in defacult image dir ${birt_home}/report/image - still issue persist

Please suggest the way forward.


Thanks
Re: Embedded Image not working in BIRT4.2.2 [message #1053197 is a reply to message #1052420] Fri, 03 May 2013 05:23 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

So, this is just with the web viewer? You don't see the issue in the designer, correct?

Michael

Developer Evangelist, Silanis
Re: Embedded Image not working in BIRT4.2.2 [message #1059075 is a reply to message #1053197] Thu, 16 May 2013 14:30 Go to previous messageGo to next message
William Harrelson is currently offline William HarrelsonFriend
Messages: 4
Registered: May 2013
Junior Member
I'm having this same issue. I have three images in my report. All are specified by including a full public URL in the URI specification in the designer. All show just fine in Report Designer and in preview in Report Designer. All three show in webviewer html mode using 'preview', but only two of the three show using any pdf output mode, or in webviewer frameset mode.

Can anyone help me solve this? TIA.

Eclipse Juno, Win7, BIRT 4.2.2 release, tomcat 6, complete newbie.


[Updated on: Thu, 16 May 2013 21:25]

Report message to a moderator

Re: Embedded Image not working in BIRT4.2.2 [message #1059160 is a reply to message #1059075] Fri, 17 May 2013 04:56 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

All images show fine when I call the report through Chrome, but if I try with IE, the PDF doesn't show URI images. I get, "The resource of this report item is not reachable". Is this what you're seeing? Let me know.

Michael

Developer Evangelist, Silanis
Re: Embedded Image not working in BIRT4.2.2 [message #1059215 is a reply to message #1059160] Fri, 17 May 2013 10:52 Go to previous messageGo to next message
William Harrelson is currently offline William HarrelsonFriend
Messages: 4
Registered: May 2013
Junior Member
No, this is not what I'm seeing. I'm experiencing this in Chrome. When I use the web viewer and 'frameset' mode, there isn't even an image tag in the place where the third image is supposed to be in HTML output. The image is not there for pdf in either frameset or preview mode, but is there in html preview mode or in the report designer preview mode. It's not there in report designer run -> view as pdf
Re: Embedded Image not working in BIRT4.2.2 [message #1059406 is a reply to message #1059215] Sat, 18 May 2013 04:08 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Can you create a report that I can run where you're seeing this and attach it, along with the image if needed. Thanks.

Michael

Developer Evangelist, Silanis
Re: Embedded Image not working in BIRT4.2.2 [message #1059706 is a reply to message #1053197] Tue, 21 May 2013 09:58 Go to previous messageGo to next message
purnima d is currently offline purnima dFriend
Messages: 26
Registered: April 2013
Junior Member
Hi Williams,

Issue is with web viewer not with designer.
Also PDF is working fine with embedded image issue is with respect to HTML view.

Note:We are not using HTMLRenderOption ,We are using default viewer to view html output.
Re: Embedded Image not working in BIRT4.2.2 [message #1059862 is a reply to message #1059706] Wed, 22 May 2013 02:24 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Can one of you attach a report that's failing for them that I can run? I've not seen the same with any tests I've done besides what I noted above in IE. Thanks.

Michael

Developer Evangelist, Silanis
Re: Embedded Image not working in BIRT4.2.2 [message #1061798 is a reply to message #1052420] Tue, 04 June 2013 06:37 Go to previous messageGo to next message
da image is currently offline da imageFriend
Messages: 2
Registered: June 2013
Junior Member
something wrong with the web viewer Sad
Re: Embedded Image not working in BIRT4.2.2 [message #1062561 is a reply to message #1061798] Sun, 09 June 2013 01:09 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I've not seen a problem with this as of yet. If you can provide a sample report that will show me the issue, I might be able to help.

Michael

Developer Evangelist, Silanis
Re: Embedded Image not working in BIRT4.2.2 [message #1160729 is a reply to message #1052420] Tue, 29 October 2013 10:08 Go to previous messageGo to next message
purnima d is currently offline purnima dFriend
Messages: 26
Registered: April 2013
Junior Member
Hi Williams

Embedded image is not working for Birt 4.3 also.

Issue 1 : We are using weblogic 11 to deploy the reporting application and once the rptdocument gets generated with Birt 4.2.2 and we are using Birt 4.2.2 viewer to view the report from the application but we are unable to view the embedded images in newly created report (with 4.2.2)

Issue 2 : We are also facing issue with old reports which are generated with BIRT 3.7 and these reports are uploaded to the database as rptdocuments.
So, when we try to view these old reports with birt 4.2.2 viewer , the embedde image is not getting displayed

Note : Even if we use dynamic image we will face the same issue with old reports that are stored in DB with embedded image.


Observations :

1.Looks like it is not issue with Weblogic why because initially we have upgraded Weblogic to 11g without upgrading BIRT and tested all reports everything is fine.We have encountered this issue only after upgrading BIRT to 4.2.2

2.This is happening for any sample report we create using BIRT4.2.2.

3.We also tried birt 4.3 viewer , we are facing similar issue with latest 4.3 version.

Please find the attached sample report created using birt 3.7

Steps to reproduce :

1.Use this sample rptdesign and generate rptdocument using birt 3.7
2.Try to view the rptdocument with birt 4.2.2 and birt 4.3

example :
http://localhost:7001/reportViewer/run?__document = sample_embedded_image.rptdocument

if you use Birt 4.2.2 or Birt 4.3 viewer you will not be able to view the the embedded image

Created Bugzilla entry for this :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=406788

[Updated on: Tue, 29 October 2013 10:15]

Report message to a moderator

Re: Embedded Image not working in BIRT4.2.2 [message #1160758 is a reply to message #1160729] Tue, 29 October 2013 10:31 Go to previous messageGo to next message
sam va is currently offline sam vaFriend
Messages: 121
Registered: July 2011
Senior Member
A high level summary to the issue.

We were in weblogic 11g/BIRT 3.7 earlier. We have some rptdocuments stored.
Now we would like to upgrade to BIRT 4.2.2. In DEV env we upgrade BIRT to 4.2.2. Now when we are trying to view older reports (generated in BIRT 3.7) but using BIRT 4.2.2 Viewer to view it, this issue pops up
Re: Embedded Image not working in BIRT4.2.2 [message #1182291 is a reply to message #1160758] Tue, 12 November 2013 05:07 Go to previous messageGo to next message
purnima d is currently offline purnima dFriend
Messages: 26
Registered: April 2013
Junior Member
Hi Williams,

Any updates on the embedded issue?
Re: Embedded Image not working in BIRT4.2.2 [message #1231500 is a reply to message #1182291] Tue, 14 January 2014 20:43 Go to previous messageGo to next message
andy Moses is currently offline andy MosesFriend
Messages: 26
Registered: November 2013
Junior Member
if the birt report design file's XML source contains the image data, then below article may work.
What 's needed is a custom image handler to render the in-line image

http://www.first8.nl/using-image-with-pojo-birt-runtime/

 private void setupImageHandler(final HTMLRenderOption options) {
        options.setImageHandler(new HTMLServerImageHandler() {
            @Override
            protected String handleImage(IImage image, Object context, String prefix, boolean needMap) {
                String embeddedImage = Base64.encode(image.getImageData(), false);
                return "data:" + image.getMimeType() + ";base64," + embeddedImage;
            }
        });
    }
Re: Embedded Image not working in BIRT4.2.2 [message #1735917 is a reply to message #1052420] Thu, 23 June 2016 15:07 Go to previous message
Eric Daly is currently offline Eric DalyFriend
Messages: 11
Registered: January 2013
Junior Member
I know this is old, but just in case anyone else is looking for a solution. I experienced this issue with 4.5.0, and found it to be a permissions issue. Tomcat needs write access to the images directory because writes temp images for charts, etc. on the fly.
Previous Topic:MongoDB collection field empty
Next Topic:Linking Images Stored in a Folder to a Report (with Changeable Hyperlinks)
Goto Forum:
  


Current Time: Fri Apr 19 16:29:04 GMT 2024

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

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

Back to the top