5

I'm new to Oracle Apex and I'm really struggling how to display static images on a desktop application.

I uploaded an image at Shared Components -> Files -> Static Application Files and was given the reference #APP_IMAGES#test.jpg

In my application I then used this reference in the 'source' section by selecting 'item' and then typing #APP_IMAGES#test.jpg in the textbox

When I run the application the image doesn't appear. The regions are visible but no image. I don't even get an error.

I appreciate any help

CrapDeveloper
  • 156
  • 1
  • 3
  • 9
  • Using "item" as the source type won't work because `#APP_IMAGES#test.jpg` is not the name of an item. `#APP_IMAGES#` is a substitution string so must be included in some text that will be rendered in the html of the page without escaping. – Jeffrey Kemp Aug 27 '15 at 02:18

3 Answers3

12

There are several options to display an image. But if you want to use an item to display one, you can use an item of the type "Display Image".
In the "Settings" for this item you get a few options on where the image should come from:

  • Image URL stored in Page Item Value
  • BLOB Column specified in Item Source
  • BLOB Column returned by SQL statement

Item identification and settings

You'd use the BLOB columns when working with images coming from the database, but here you can just use the "Image URL" option.

All you need to do then is to specify the URL in the item's source. Item source settings

Obviously there are other methods too. You could indeed just generate the HTML yourself, for example.

Tom
  • 6,988
  • 1
  • 26
  • 40
  • 1
    I have a table in apex: emp_data with emp_name and emp_image blob column. If i upload employee image in static files, can ireference it in the blob db column? If yes then how and if no, is there an alternative? – Velocity Dec 08 '20 at 07:44
7

You still need to use html. Try:

<img src="#APP_IMAGES#test.jpg" alt="image">
Olafur Tryggvason
  • 4,761
  • 24
  • 30
2

use

<img src="#APP_IMAGES#flow.png" alt="image"> 

in label. Remember to upload the image in shared components

Thirumal
  • 8,280
  • 11
  • 53
  • 103