How are APEX Application components stored inside DB?

Category: QuestionsHow are APEX Application components stored inside DB?
1 Answers
Editor">Editor Staff answered 2 years ago

This is first of a 3 part series on embedding files in our APEX application. APEX allows us to embed static web files (CSS, JS, images, etc) into our application. This functionality had removed the need to store the web files on a web server that is required for some applications.
To upload our file into the application we must go to Shared Components & Static Files. Click on the Create button. On the Create page, we can upload a file and either associates the file to a specific application or no application. Files that are in association with a specific application should be having a unique filename within its parent application. It can then be referenced (most likely in a page template) using the #APP_IMAGES# substitution string. Files which are not associated with a specific application are available to all the applications within the workspace and can be referenced (most likely in a page template) using the #WORKSPACE_IMAGES# substitution string. Files which are added to the application aren’t stored on the webserver.
They are stored in the database. For high traffic applications, this may not be a great idea and we may want to look at storing them on a web.