Guest User

Untitled

a guest
Jun 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. body1 = EncodingUtil.base64Encode(termsandconditionsAttach.body);
  2. body1=termsandconditionsAttach.Body.toString();
  3.  
  4. <a href="/servlet/servlet.FileDownload?file={!AttachmentId}">Download</a>
  5.  
  6. String bodyContent = myAttachment.body.toString();
  7.  
  8. public string bodyContent{get;set;}
  9.  
  10. public string getBodyContent(){
  11. return myAttachment.body.toString();
  12. }
Add Comment
Please, Sign In to add comment