You need to sign in to do that
Don't have an account?
Anjali R
How to save image as an attachment and access the saved image using href or apex:commandLink
Hi,
Below are the steps :
1. I have an html page where user can perform some drawings.
2. There is a submit button which will convert the html page to base64 encoding using html2canvas.
3. I need to save this image as an attachment and made this available as a downloadable link (download as png image ) in my application.
Please help me !!
Below are the steps :
1. I have an html page where user can perform some drawings.
2. There is a submit button which will convert the html page to base64 encoding using html2canvas.
3. I need to save this image as an attachment and made this available as a downloadable link (download as png image ) in my application.
Please help me !!
If the Id of the attachment record is, for example, 01590000003nfWd, and your instance is na2:
Then the download URL will be something like this:
https://c.na2.content.force.com/servlet/servlet.FileDownload?file=01590000003nfWd