0

I develop a visualforce page which generate a word document.

Unfortunately, the image in the word document is not displayed whereas it's ok in PDF and in visualforce page.

The document has the Externally Available Image "Externally Available Image" checked and I use that URL:

https://c.cs***.content.force.com/servlet/servlet.ImageServer?id=****&oid=***

This is my code:

<apex:page standardController="Contract" extensions="VFC01_GenerateConsiderations" contentType="application/msword#filename.doc" showHeader="false" applyHtmlTag="false" applyBodyTag="false">

<html xmlns:w="urn:schemas-microsoft-com:office:word">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <head>
    </head>
  
    <body>
        <apex:image url="https://c.cs***.content.force.com/servlet/servlet.ImageServer?id=***&oid=***" />
    </body>
</html>

</apex:page>

What is wrong please?

Thanks

0

The response is I have to display an image with HTTP and not HTTPS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.