I know that we can access static resources in a Visualforce page as follows:
{!URLFOR($Resource.UploadTemplate)}
How can we access the static resource in an Apex class? And if it's in a zip file, how can I specify the specific file from within the zip as is allowed in Visualforce?
Thanks in advance.
{!URLFOR($Resource.StyleZip, 'basic.css')}
developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/…