You need to sign in to do that
Don't have an account?
singara
Image Upload using visualforce and saving in custom formula field how? Please help me
Hi Every one,
I have one requirment, I have to create one custom formula filed in account object ie. "Photo__c" (i dont know how to create it ) and I have to upload an image using visualforce page and save this image to "Photo__c" field. while i have to show this image in visualforce page again.
How to achieve this functionality, Please help me out of this...
Thanks in adv........
Create the url Field (Photo__c ) on Account object .
Please study below code , you will get the idea how to Achieve your requirement
if you want to show image in Vf page , you need to Create Attachment with currently attached file and prepare url for it , and update your Account with url . and display it in your Vf page .
Regards,
V'Nath
All Answers
Create the url Field (Photo__c ) on Account object .
Please study below code , you will get the idea how to Achieve your requirement
if you want to show image in Vf page , you need to Create Attachment with currently attached file and prepare url for it , and update your Account with url . and display it in your Vf page .
Regards,
V'Nath
It doesn't work yaar.plz help me out of this trouble anyone ?
Hi veerendranath ,
i tried your code ,image is not attached to the attachment of the created contac.
simply it is creating one contact record but image is not attached to the attachements.
i have used page message in the vf it is giving an error saying below,
Hey Verender
It is working great man... But we have to do some modifications.
One is visualforce extension controller name. Replace the controller name '' myAccount " with " myContact " like extensions="myContact".
And we have to create a field Photo__c in the contact object.
and replace " imageurl__c " with " photo__c " in the code.
Great effort Veeru, thanks alot
The page must be named 'DisplayImage'.
It must NOT display the standard Salesforce header.
It must use a Visualforce apex:image component to display this image - https://developer.salesforce.com/files/salesforce-developer-network-logo.png
i tried your code ,but i got error like this,
"The value of attribute "url" associated with an element type "apex:image" must not contain the '<' character"