Guest User

Untitled

a guest
Oct 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. System.assert(Blob.valueOf('abc') == Blob.valueOf('abc'));
  2.  
  3. private static Boolean eq(Blob b1, Blob b2) {
  4. if (b1.size() == b2.size()) {
  5. String s1 = EncodingUtil.base64Encode(b1);
  6. String s2 = EncodingUtil.base64Encode(b2);
  7. return s1 == s2;
  8. } else {
  9. return false;
  10. }
  11. }
Add Comment
Please, Sign In to add comment