I am getting data in the following format through post request.
"data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
Now I want to send this 'data:image/png;base64' value as an image(jpg/png) to email as email attachment.
I am using JFactory::getMailer();
.
Can you guide me on how I can do it?