New answers tagged


My solution is get the Body of Attachment as Base64 and then create download link at the frontend. Note: The attachment body should not exceed 4.5MB due to the Salesforce governor limits. In your Apex Controller you can create a @RemoteAction method which gets the body of the attachment, encodes it to String using EncodingUtil.base64Encode and return it to ...

Top 50 recent answers are included