
There is no blob field type in Salesforce. A couple of thoughts here. Either you can store it as an attachment related to the record, or store it as a very large string, hope the blob doesn't exceed the size of the string, and handle any encoding / decoding through triggers, etc.
Full Answer
What is blob in Salesforce?
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. The following are methods for Blob.
What is retrieve BLOB data?
Retrieves the specified blob field from an individual record and returns it as binary data. Only certain standard objects have blob fields, such as Attachment, ContentDocument, ContentNote, Document, Folder, and Note. For an example of retrieving blob data from a Document, see Retrieve Blob Data.
How to specify the name of the BLOB data field?
For single documents, in the binary part of the request body, use the name attribute to specify the name of the blob data field for the object. For example, the name of the blob data field for the Document object is Body.
How do I upload files or binary data to a blob?
You can upload files or binary data of any type to any standard object that contains a blob field. To insert and update blob data, create a multipart request body. The first part of the request body contains non-binary field data, such as the description or name of the new record.

How do I add a blob in salesforce?
Inserting a Document with Blob Data Make sure the Type field of the Folder record is Document. After you successfully send the request, you can view the new Document in Salesforce Classic. Salesforce Lightning doesn't display Documents in the user interface. This request body represents the contents of NewDocument.
How is BLOB data stored?
BLOB storage BLOBs are not stored in the normal database files on disk in the same way as is other data managed by DB. Instead, they are stored as binary files in a special directory set aside for the purpose.
What is a blob in salesforce?
Blob. The Blob is a collection of Binary data which is stored as object. This will be used when we want to store the attachment in salesforce into a variable. This data type converts the attachments into a single object.
Where is BLOB data stored?
A Blob is stored in the memory much like any other ArrayBuffer . It's stored in the ram, just like the other objects declared in the window. Looking at the chrome://blob-internals , we can see how its physically stored in the ram.
What can we store in BLOB?
Blob storage is designed for:Serving images or documents directly to a browser.Storing files for distributed access.Streaming video and audio.Writing to log files.Storing data for backup and restore, disaster recovery, and archiving.Storing data for analysis by an on-premises or Azure-hosted service.
What is the difference between BLOB and file storage?
In summary, the difference between the two storage services is that Azure Blob Storage is a store for objects capable of storing large amounts of unstructured data. On the other hand, Azure File Storage is a distributed, cloud-based file system.
What is Blob data type?
A BLOB (binary large object) is a varying-length binary string that can be up to 2,147,483,647 characters long. Like other binary types, BLOB strings are not associated with a code page.
What is a file Blob?
BLOB stands for a “Binary Large Object,” a data type that stores binary data. Binary Large Objects (BLOBs) can be complex files like images or videos, unlike other data strings that only store letters and numbers. A BLOB will hold multimedia objects to add to a database; however, not all databases support BLOB storage.
What do you mean by Blob?
1a : a small drop or lump of something viscid or thick. b : a daub or spot of color. 2 : something shapeless.
Is BLOB storage a database?
Conclusion. Azure blob storage is a cost-effective solution to store massive amounts of unstructured data in the cloud environment. It also offers various access tiers to manage store costs based on data accessibility. The blob storage is also used for SQL Server workloads to store database files or its backup files.
Is BLOB storage distributed?
Azure Blob Storage is an object store used for storing vast amounts unstructured data, while Azure File Storage is a fully managed distributed file system based on the SMB protocol and looks like a typical hard drive once mounted.
Is BLOB storage a data lake?
Azure Blob Storage is a general purpose, scalable object store that is designed for a wide variety of storage scenarios. Azure Data Lake Storage Gen1 is a hyper-scale repository that is optimized for big data analytics workloads. Based on shared secrets - Account Access Keys and Shared Access Signature Keys.
Inserting a Document with Blob Data
This example request and request body creates a Document record that contains the binary data of a PDF file. In addition to the binary data of the file itself, the request body also specifies other field data, including the FolderId, which is required for the Document object.
Updating a Document with Blob Data
This example updates an existing Document record. Depending on the contents of the request body, you can update the fields of the record, the binary data associated with it, or both.
Inserting a ContentVersion
This example inserts a new ContentVersion. In addition to the binary data of the file itself, this code also provides values for other fields, such as the ReasonForChange and PathOnClient. This message contains the ContentDocumentId because a ContentVersion is always associated with a ContentDocument.
Using sObject Collections to Insert a Collection of Blob Records
This example inserts a collection of new Documents. In addition to the binary data of the files themselves, this code also specifies other field data, such as the Description and Name for each record in the collection.
Multipart Message Considerations
Following are some considerations for the format of a multipart message when you insert or update blob data.
Using Salesforce to Manage Accounting Journeys
Many companies falsely believe that accounting is not related to customer services and business growth, making the mistake of improvising the accounting section. However, the…
Top 10 Salesforce Consultants by Forcetalks
Apphienz ranks 2nd among the Top 10 Salesforce Consultants by Forcetalks Forcetalks is a Salesforce Community For You, Of You, By You. It is a…
Top 5 Features Salesforce Winter Release '21
Even though we're in the middle of one of the strangest summers in our lives, we can rely on one constant: releases from Salesforce. It's…
How to Set Up Salesforce Knowledge?
Watch this video to learn how to set up Salesforce Knowledge so you can help your team more easily find answers to common customer requests.…
Mukul Mahawariya Follow
Azure Data Factory is a cloud-based data integration service that allows you to create data-driven workflows in the cloud for orchestrating data movement and data transformation.
Mukul Mahawariya
I am sharing step by step tutorial of connecting Salesforce and Azure Blob Storage and its working. Have a look! #salesforce #azure #azuredatafactory #cloud #salesforceblog #salesforcecrm #salesforcedevelopers
Lokesh Gupta
Mukul Mahawariya finally it is published :). It is very informative and well-written article.
