function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Salesforce 283Salesforce 283 

How to write a loop on zipfile which is stored in static resource?

Hi Guys,
I created one zip file and put in static resource which has images. I mentioned each image in VF PDF page and displayed. Here i want to display dynamically which means that today i put 4 images tomorrow i will put 6 images. So dont want to mention remianing images it will show all images automatically. Is it possible to write a loop on zipfile.
To reference a static resource using the $Resource global variable, provide the name of the static resource in an expression: {! $Resource[StaticResourceName] }. For example, if you have a getCustomLogo method that returns the name of an image uploaded as a static resource, reference it like this: <apex:image value="{!$Resource[customLogo]}"/>

Check this link for the sample code -