Forum Discussion
nravon
5 years agoNew Contributor
Can you post the Base64 content (assuming it is not sensitive!)?
- alchemiz5 years agoContributor III
Hi Deepak,
Quick question, has the $content object has already been encoded to base64 (usually needs to encode since content is a binary)
Try, Base64.decode(Base64.encode($content))
Thanks
- deepak_shaw5 years agoContributor
Thanks, It worked 😀
- ptaylor5 years agoEmployee
Note: This is equivalent to
$content
. Also, our preview UI sometimes erroneously shows binary content as “Base64-encoded” when it’s actually not. It’s just an array of bytes. See Convert Base64 to HEX - #5 by ptaylor