You need to sign in to do that
Don't have an account?
Cloudy
How to convert a ContentVersion VersionData blob to a Base64Encoded String for Docusign Document
Hi,
I'm trying to get a ContentVersion file (a PDF) via the VersionData field and convert it for a Docusign Rest API Base64Encoded String.
For this I take the VersionData blob and use Encoding Util t get a String that I pass to the JSON DocumentBase64 property
String data = EncodingUtil.base64Encode(body);
But I get an error telling me that the file is not correctly formatted.
How can I transform my VersionData to a a Docusign Document?
thanks
I'm trying to get a ContentVersion file (a PDF) via the VersionData field and convert it for a Docusign Rest API Base64Encoded String.
For this I take the VersionData blob and use Encoding Util t get a String that I pass to the JSON DocumentBase64 property
String data = EncodingUtil.base64Encode(body);
But I get an error telling me that the file is not correctly formatted.
How can I transform my VersionData to a a Docusign Document?
thanks
Check similar reference below to convert contentversion versiondata to string.
https://salesforce.stackexchange.com/questions/231586/how-to-convert-contentversion-versiondata-to-string
Please mark as Best Answer if above information was helpful.
Thanks,