You need to sign in to do that
Don't have an account?
Bhaskar@optra
How to access image stored in contentversion object in visual force page???
Hi All,
I have 10 mb image stored in a contentversion object. Please guide me for displaying this image in a vf page. Thanks
Pls have a look here: http://developer.force.com/cookbook/recipe/displaying-salesforce-crm-content-documents-in-a-visualforce-page
Cheers,
--dirk
Hi Dirk,
I visit that link u posted.....Good.......That gives the hiper reference to that image in salesforce chatter files...i dont want that ..completely i need to get that image in visualforce page ,i want to do some other operation in that image like editing,pointing some part of that image.So please guide me ...........
Any help greatly appreciate....! :)
Thanks.
You want to access a file posted in chatter on a record and modify & update it?
--dirk
try this one: https://c.eu1.content.force.com/sfc/servlet.shepherd/version/download/[CONTENTVERSION.ID]
replace [CONTENTVERSION.ID] with the ID of the ContentVersion record and use the url in an image tag!
--dirk
Hi Dirk,
I tried that link u posted...But i am not getting image...please send me if u have any related vf page example ?
I tried the following way.....
<apex:page controller="Myfilesnewimagectrl" sidebar="false" showHeader="false">
<apex:form >
<apex:image url="https://c.ap1.content.force.com/sfc/servlet.shepherd/version/download/['06990000000KYyB']"/>
</apex:form>
</apex:page>
Let me know if any errors in my code.....!
Thanks
You have to use this one:
<apex:image url="https://c.ap1.content.force.com/sfc/servlet.shepherd/version/download/06990000000KYyB"/>
without the [''] !!
--dirk