function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kiran punurukiran punuru 

how to convert a file into base64binary

I have a scenario like this :
 When a file is sending from external systems to salesforce ,how to convert that file into base64binary format which is the datatype for body in attachment object.
Let's Say if iam adding an attachment to a  lead object from .net code ,How can we convert that into base64binary and add to attachments in salesforce for lead object.
Hi Kiran,

User Blob.valueOf(your string) function to convert the image into base64binary.