Activity Forums Salesforce® Discussions What is the use of Blob Variable in Salesforce?

  • Deepak

    Member
    August 26, 2019 at 12:09 pm

    Blob is a collection of binary data stored as a single object. You can convert this data type to String or from String using the toString and valueOf methods, respectively. Blobs can be accepted as Web service arguments, stored in a document (the body of a document is a Blob), or sent as attachments.

    Blob Methods
    The following are methods for Blob.
    size()
    Returns the number of characters in the Blob.
    toPdf(stringToConvert)
    Creates a binary object out of the given string, encoding it as a PDF file.
    toString()
    Casts the Blob into a String.
    valueOf(stringToBlob)
    Casts the specified String to a Blob.

  • Shweta

    Member
    February 5, 2020 at 1:56 pm

    Blob Variable :

    • It is a collection of Binary data which is stored as object.
    • It is used to store the attachment in Salesforce into a variable and it converts the attachments into a single object.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos