Oracle Apex 5.0 - Display static image

落花浮王杯 提交于 2019-12-21 06:04:09

问题


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


回答1:


You still need to use html. Try:

<img src="#APP_IMAGES#test.jpg" alt="image">



回答2:


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

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.

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




回答3:


use

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

in label. Remember to upload the image in shared components



来源:https://stackoverflow.com/questions/32231112/oracle-apex-5-0-display-static-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!