Guest User

Untitled

a guest
Jan 17th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Attachment att =[SELECT BodyLength,Body,
  2. ContentType,Description,Id,
  3. Name,ParentId
  4. FROM Attachment WHERE ParentId = '0017F00000MMXXXXXX'];
  5. blob b= att.Body;
  6. String s = EncodingUtil.base64Decode(EncodingUtil.base64Encode(b)).toString();
Add Comment
Please, Sign In to add comment