Forum Stats

  • 3,817,445 Users
  • 2,259,334 Discussions
  • 7,893,774 Comments

Discussions

How do you display a image in apex

703992
703992 Member Posts: 8
edited Aug 18, 2009 10:27AM in APEX Discussions
I have a trouble for a long time..
I can't load a image in apex..

I do a lot of things but it never give result correctly

some could help me..

Thank u....
«134

Answers

  • ATD
    ATD Member Posts: 11,184
    Hi,

    If you want to store your images on a table, have a look at: [http://apex.oracle.com/pls/otn/f?p=267:11]

    Or, do you want to upload images through Shared Components, Images and then show them on a page?

    Andy
  • 703992
    703992 Member Posts: 8
    I wanna load a image in a form or shared compoment
  • 691976
    691976 Member Posts: 11
    If it's a fixed image, you can use the page or report body to call <img src="">
  • ATD
    ATD Member Posts: 11,184
    Hi,

    OK - the link I gave will explain how to upload into a table and then display images from there.

    To do this through Shared Components:

    1 - Go to Shared Components
    2 - Select Images
    3 - Click Create
    4 - In the Application option, leave it as "No Application Associated" if you want any application to use the image, or select an application if the image is for that application only
    5 - Click the Browse button, locate your image file on your machine and click Open
    6 - Any any Notes you want (this is not required)
    7 - Click Upload

    On your page, decide where you want the image to appear. This can be in a region's Source, Region Header or Region Footer OR if you want you can do this on the page template you are using. Then enter in:

    For an image NOT associated with an application:
    &lt;img src="#WORKSPACE_IMAGES#filename.gif"&gt;
    For an image associated with an application:
    &lt;img src="#APP_IMAGES#filename.gif"&gt;
    Andy
  • 703992
    703992 Member Posts: 8
    I have been doing this a lot of times but I can't see results.

    Please, I need to know how I can upload an image from the shared components of Apex or another way
  • ATD
    ATD Member Posts: 11,184
    Hi,

    So, if you go to Shared Components, Images, you can see your image listed?

    In your IMG tag, you must use exactly the same filename - uppercase and lowercase must be the same ("txt.gif" is different from "TXT.GIF")

    Andy
  • 703992
    703992 Member Posts: 8
    Thank you for all;

    Solved Problem!!!! now I Can see the image.

    Thank you
  • ATD
    ATD Member Posts: 11,184
    You're welcome

    Andy
  • sKr
    sKr Member Posts: 331
    Hi, i need to show an image stored in the OS like /data/images/myimage.jpg.

    When i add an img tag to a region's body and run the page it asks me for an xdb password.

    Please suggest something.

    Thanks.
  • ATD
    ATD Member Posts: 11,184
    Hi,

    Where is "/data/images/myimage.jpg" in relation to the normal Apex "/images" folder? It should be in, or underneath it.

    Andy
This discussion has been closed.