Search code examples
obiee

How to add image in OBIEE?


I am coding some basic html code just to display an image banner to our OBIEE dashboard but failed to do so. I am a newbie in terms of programming so feel free to correct me in anyway. So, here's the detail.

I am currently working in the static text layout where the old banner was coded, I remove them and replace with a basic code that only import an image see here.

*Oracle Business Intelligence 12.2.1.4.0

I have tried coding it thru HTML,CSS, & Javascript those only the few I basically know. I did my research and follow some tutorials but no glimpse of hope to it, it does work when I relay the output in a browser while coding it in Visual Studio.

What I want is just to display it successfully and not to show a image icon. Hope someone can help me out. Thank You :)


Solution

  • I am struggling to comprehend where Visual Studio comes into this but assuming you want to just have an image on a dashboard then there are lots of options

    It looks like you are trying to insert a remote image which is going to cause all sorts of security issues that are likely to mean it will get blocked.

    The simplest is to just add a "link or Image" object and use a local image. If you click on the select image button there is an option to upload image and select it for display.

    If you want to use html then you just need to add a text object and add the img html <img src="https://someurl.com/img.jpg" /> but you are going to need to change lot of security policies to allow the content to be displayed.

    There are other options to host the file locally such as a shared folder (https://gianniceresa.com/2017/02/obiee-12c-custom-style-using-shared-folder/) but the upload is far simpler.

    If you insist of using a remote image you will need to understand security policies (CSP, XSS etc.) which aren't OBIEE specific but standard web server