How to get path url of image from Static Resource in Apex class - Domreysa

Post Top Ad

Post Top Ad

Tuesday, December 3, 2019

How to get path url of image from Static Resource in Apex class

String imageURL = URL.getSalesforceBaseUrl().toExternalForm() + PageReference.forResource('resourceName').getUrl();
System.debug('Here is image url:'+ imageURL );

No comments:

Post a Comment

Post Top Ad

Responsive Ads Here