We have the below requirement
1)We receive the base 64 encoded Request in Real time in JSON format.
2)We need to decode it and convert it to .pdf file and send it as an attachment in the Transactional Email Delivery.
Kindly help us in how to convert Base 64 to pdf attachment and which works in all browser clients and let us know.
Can you Please suggest us the 3rd Party Conversion tool to integrate with Campaign which can be used for Base64 to pdf?
On what Os your Adobe campaign is installed ? Windows or Linux ? On-Premise, hybrid or fully hosted ?
I may have a solution for you if you are on-premise or hybrid, and if your ACC instance is on Windows server.
The Adobe Campaign is installed in fully hosted environment and on Windows.
Please let us know the solution used for Hybrid Environment so that we will try to use the same approach.
I receive the attachement in XML format like this :
<ctx [...]> [...] <pj fileName="PdfFileName.pdf"> [attached encoded in base64] </pj> </ctx>
The solution that worked for me is :
I hope i was clear, if not, please let me know.
We have checked the code solution provided by you and had few queries below:
Is the above JS Code used on Transactional Server?
If yes, can you please let us know how you have got the directory path...because rtServers are managed by Adobe, so can we have a look into rtServers Backend Directories?
Need some better understanding on the above code provided..
No, the above code is not used in a transactionel server. We are On-premise and have a Midsourcing style architecture.
Find bellow a diagram on how i made it work :