Reputation: 6899
I have a page in APEX that uses many external images. I loaded all of the images for that page into a separate folder in Static Application Files under Shared Components and I am just referencing those on the page. I am not sure I like it as it looks messy when you open Static Application Files. It was suggested to me to load the images onto the SharePoint and access them using URL from APEX but that also does not seem like a good solution - URLs are very long and make the code messy. Another option would be to host them on application server. I am trying to figure out the best way and would love to hear some suggestions. Thank you in advance for your valuable input
Upvotes: 2
Views: 578
Reputation: 745
We had a similar problem as we had a feature where users had to upload images and went with loading the images into the DB at first.
In order to retrieve them we used the APEX REST service and it worked fine enough.
Once we also had to store videos though and had to make them available on mobile as well,we went with a shared network storage and just put the file names into the database.
Either of these options should reduce "messiness" and work fine.
Upvotes: 0
Reputation: 188
You can read the file names list them in the application and when the users "selects" you can load the file by loading a BLOB in the database. In my case I do that by invoking a custom OS Job that lets me do that.
Upvotes: 0
Reputation: 132570
If the "messiness" of the list in Static Application Files concerns you, you could save some report filters:
File Name like 'xxx/%'
File Name not like 'xxx/%'
Upvotes: 1
Reputation: 142720
Another option is to store them into BLOB
columns in a table within the database.
Upvotes: 2