Skip to main content
Ankit Patel perguntou em #Apex
Attachment att=[Select Body From Attachment where id='00P7F00000F8EQs'];

string stringvalue = EncodingUtil.base64Encode(att.body);

blob blobvalue =EncodingUtil.base64Decode(stringvalue);

System.debug('Attachment body : '+blobvalue);

 
1 resposta
  1. 2 de abr. de 2019, 14:23
    Can u try like this

     

    Blob csvBlob = csv.Body;

    String csvString = csvBlob.toString();

    String csvBody = EncodingUtil.base64Encode(csvBlob);

0/9000