Oracle Apex 5.0 - 显示静态图像

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32231112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 00:55:58  来源:igfitidea点击:

Oracle Apex 5.0 - Display static image

oracleoracle-apexoracle-apex-5

提问by CrapDeveloper

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

我是 Oracle Apex 的新手,我真的在为如何在桌面应用程序上显示静态图像而苦苦挣扎。

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

我在 Shared Components -> Files -> Static Application Files 上传了一张图片,并获得了参考 #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

在我的应用程序中,我通过选择“项目”然后在文本框中键入 #APP_IMAGES#test.jpg 在“源”部分中使用此引用

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

我感谢任何帮助

回答by Tom

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
  • 存储在页面项目值中的图像 URL
  • 项目源中指定的 BLOB 列
  • SQL 语句返回的 BLOB 列

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.

在处理来自数据库的图像时,您将使用 BLOB 列,但在这里您可以只使用“图像 URL”选项。

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

然后您需要做的就是在项目的源中指定 URL。 项目来源设置

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

显然还有其他方法。例如,您确实可以自己生成 HTML。

回答by Olafur Tryggvason

You still need to use html. Try:

您仍然需要使用html。尝试:

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

回答by Thirumal

use

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

in label. Remember to upload the image in shared components

在标签中。记得上传共享组件中的图片