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 );
String imageURL = URL.getSalesforceBaseUrl().toExternalForm() + PageReference.forResource('resourceName').getUrl();
System.debug('Here is image url:'+ imageURL );
Comments
Post a Comment