You need to sign in to do that
Don't have an account?
Unable save visualforce page displaying image from url
Create a Visualforce page without the standard Salesforce header and display an image using the Visualforce image component.
1.The page must be named 'DisplayImage'.
2.It must NOT display the standard Salesforce header.
3.It must use a Visualforce apex:image component to display this image - https://developer.salesforce.com/files/salesforce-developer-network-logo.png
1.The page must be named 'DisplayImage'.
2.It must NOT display the standard Salesforce header.
3.It must use a Visualforce apex:image component to display this image - https://developer.salesforce.com/files/salesforce-developer-network-logo.png
<apex:page showHeader="false" controller="DisplayImage"> <apex:pageBlock> <apex:image url="developer.salesforce.com/files/salesforce-developer-network-logo.png"/> </apex:pageBlock> </apex:page>
why do you write "controller="DisplayImage"? Try whitout.
Try to add in url "https://":
<apex:page showHeader="false" >
<apex:pageBlock>
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/>
</apex:pageBlock>
</apex:page>
I am meeting the same situation like you here. Have you figured that out? Could you enlight me a bit?
Thank you.
I think I misunderstood the challenge.
Later I had downloaded the image and added to static resources and it worked as required.
Please let me know if you face any issue.
Thanks,
Yogesh
<apex:page showHeader="false">
<apex:pageBlock>
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/>
</apex:pageBlock>
</apex:page>
Here is teh output:
Thanks.
<apex:pageBlock>
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/>
</apex:pageBlock>
</apex:page>
Write it on own without copying.