Avatar

Correct answer by
Level 6

First, I don't think that you can do it standard Adobe as the toBase64() method is exposed but not the reverse:
toBase64 (adobe.com)

Netherless, this is not a good practice at all to use Message Center this way:
creating personnalization based on a huge field (or even complexe personnalization) will slow down the treatment of your messages by the MTA.
Best practice would be to incorporate the HTML directly in the template and to use "case" of "if" condition in JS depending of your CTX.

Using the personnalization data (ctx / targetData) for html injection is never something Adobe Campaign (message center or not) loves to do: it can act as a PHP server but its goal is too generate emails as quick as possible

View solution in original post