I have the following use case :
1) I need to accept a base 64 encoded PDF attachment from a JSON payload. Sample json example :
"vars":
{
"FromAddress": "test1@mail.com""ToAddress": "test2@mail.com",
"Subject" :"Test mail""Body": "Sample Body",
"Attachment": "Base 64 encoded PDF file",
}
2) I need to send the PDF attachment using camel mail component by making use of value inside Attachment tag.
This is just a high level use case. I need know a proper industry standard way to achieve this. Please help me out with possible solutions.
Also please suggest me if there is a better way to do it