Activity Forums Salesforce® Discussions How to convert string to blob in Apex?

  • Shweta

    Member
    October 21, 2020 at 6:43 pm

    To convert string to blob :
    String myString = 'StringToBlob';
    Blob myBlob = Blob.valueof(myString);
    System.assertEquals('StringToBlob', myBlob.toString());

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos