You need to sign in to do that
Don't have an account?

Need Help!! <apex:image> don't have "align" parameter as tag html <img>
Hi all,
i have this tag, which should display an image (the id is stored in a custom field ):
<apex:image value="/servlet/servlet.FileDownload?file={!p.image_id__c}" width="113" height="86" align="left" />
I need, in my website, that the text is placed to the right of this picture, but the "align" parameter does not exist in tag <apex:image>.
How can i do?
Thanks in advance!!
I would recommend using the following format
<img src="{!URLFOR($Action.Attachment.Download, !p.image_id__c)}" style="vertical-align:left" width="113" height="86">
All Answers
I would recommend using the following format
<img src="{!URLFOR($Action.Attachment.Download, !p.image_id__c)}" style="vertical-align:left" width="113" height="86">
Bulent,
your code works fine !!
(with align="left" and not with style="vertical-align:left", and without " ! " before p.image_id__c)
I always used "/servlet/servlet.FileDownload?file=attachmentID" to display image attached to a record, but in this case only the URLFOR Action works correctly for the tag img.
In particular, when i want to see a list of attached images (through <apex:repeat> ) only the <apex:image> shows these with "/servlet/servlet.FileDownload?file=attachmentID".
What is the exact difference between these 2 links?
Thanks again!!
Can u tell explain this? (!p.image_id__c)