• Anil Kumar Relli
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
<apex:page standardController="Attachment" extensions="displayImageExtension">
<c:SiteHeader ></c:SiteHeader>
<apex:form >
<apex:pageBlock>
    <apex:pageBlockSection >
         <apex:outputText value="https://anil-cse-domain-dev-ed.my.salesforce.com/servlet/servlet.FileDownload?file=00P9000000w8OFIEA2">
        </apex:outputText>
       
        <apex:image title="imagepreview" value="https://anil-cse-domain-dev-ed.my.salesforce.com/servlet/servlet.FileDownload?file=00P9000000w8OFIEA2"/>
        <apex:image url="{!URLFOR($Action.Attachment.Download, '00P9000000w8OFIEA2')}"/>
        <a href="javascript:void(0);" id="00P9000000w8OFIEA2" target="_blank" onclick="window.open('{!$Site.CurrentSiteUrl}'+'servlet/servlet.FileDownload?file=00P9000000w8OFIEA2', '_blank')">FilePreview</a>
        <a href="javascript:void(0);" id="00P9000000w8OFIEA2" target="_blank" onclick="window.open('https://anil-cse-domain-dev-ed.my.salesforce.com/servlet/servlet.FileDownload?file=00P9000000w8OFIEA2', '_blank')">FilePreviewDirectLink</a>
    </apex:pageBlockSection>   
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:page standardController="Attachment" extensions="displayImageExtension">
<c:SiteHeader ></c:SiteHeader>
<apex:form >
<apex:pageBlock>
    <apex:pageBlockSection >
         <apex:outputText value="https://anil-cse-domain-dev-ed.my.salesforce.com/servlet/servlet.FileDownload?file=00P9000000w8OFIEA2">
        </apex:outputText>
       
        <apex:image title="imagepreview" value="https://anil-cse-domain-dev-ed.my.salesforce.com/servlet/servlet.FileDownload?file=00P9000000w8OFIEA2"/>
        <apex:image url="{!URLFOR($Action.Attachment.Download, '00P9000000w8OFIEA2')}"/>
        <a href="javascript:void(0);" id="00P9000000w8OFIEA2" target="_blank" onclick="window.open('{!$Site.CurrentSiteUrl}'+'servlet/servlet.FileDownload?file=00P9000000w8OFIEA2', '_blank')">FilePreview</a>
        <a href="javascript:void(0);" id="00P9000000w8OFIEA2" target="_blank" onclick="window.open('https://anil-cse-domain-dev-ed.my.salesforce.com/servlet/servlet.FileDownload?file=00P9000000w8OFIEA2', '_blank')">FilePreviewDirectLink</a>
    </apex:pageBlockSection>   
</apex:pageBlock>
</apex:form>
</apex:page>