function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Force.platformForce.platform 

display image in pageBlockTable

I have to display product image in pageBlockTable:
vf:
<apex:column>
                  <apex:image value="servlet/servlet.FileDownload?file={!p.Image__c}" height="50" width="50"/>
</apex:column>
image is stored in document:
url--https://c.ap6.content.force.com/servlet/servlet.FileDownload?file=0150K000006JMkx 

but image is not displaying in columns properly

 
Sabarinathan NSabarinathan N
You can use Image id.
Force.platformForce.platform
Hi  sabarinathan nagarethinam,

            I used Id, still its not showing image properly
Sabarinathan NSabarinathan N

Hi Sagarika,
Try this
<img id="theImage" src="/servlet/servlet.FileDownload?file=0150K000006JMkx" width="220" height="55" alt="Description of image here"/>

Sagarika