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
Gaurav Chauhan 16Gaurav Chauhan 16 

Content type of blob data coming from external system

Is there any way to figure out the Content type of original document coming from the external system as blob data?
Raj VakatiRaj Vakati
Try to use EncodingUtil  class base64Decode(inputString) method 
 
EncodingUtil.base64Encode(Blob.valueOf(ebiInvoiceInterfaceTestString));



https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_encodingUtil.htm