Including images in your application
A web application
will look better when you use images. Of course, APEX 4.0 supports the use of images in web pages. You can easily upload images to the APEX host with your FTP client. To connect to the APEX host, see the description at the beginning of this chapter. You should copy your images to the images directory. APEX uses a shortcut or prefix for this path. Mostly it is /i/
but you can change that. Go to shared components and click on the edit definition link on the right side of the screen, under Application. In the name section you can find this image prefix text item where you can modify the prefix. It is advised to always use the substitution string #IMAGE_PREFIX#
instead of /i/
when referring to images in templates or button images to safeguard the URI to the images when modifying the virtual directory on the HTTP server (EPG or Apache).
There is another way to upload images to the APEX environment. In the application builder, go to the application...