Convert String to Base64 in Apex #inSalesforce
Example:
String b64 = EncodingUtil.Base64Encode(Blob.valueOf('SampleSOMETHING'));
Blob b = EncodingUtil.base64Decode(b64);
String s = b.toString();
System.debug('!!!!!' + s);
Blob b = EncodingUtil.base64Decode(b64);
String s = b.toString();
System.debug('!!!!!' + s);
Comments
Post a Comment