Salesforce

Salesforce

How to show images stored in Salesforce using Lightning component?

Custom Object: Lightning Component: <aura:component implements = "force:appHostable"                   controller = "PhotoController">              <aura:attribute type = "String[]" name = "listURLs"/>                    <aura:handler name = "init" value = "{!this}" action = "{!c.onInit}"/>               <div class = "slds-box slds-theme_default">                        <aura:iteration items = "{! v.listURLs }" var = "imgStr">                              <img src = "{! imgStr }"/><br/><br/>                          </aura:iteration>                  </div>          </aura:component>   Lightning Component JavaScript Controller: ({                    onInit : function( component, event, helper ) {                    ....