Hi,
The query seems complicated to me because of some constraints.
Constraints:
Have to use
String message which should contain image. Not aware how can I convert a gif/jpeg/bmp/png image to
java string object.
This string message object will be passed to one of my framework methods send(String type, String subject, String message) to send an email. In my email I want that image to come properly and shown to the user. there is no option to pass the image. It needs to be passed as String message.
Internally the send method of the framework will create MimeMessage etc. and send email.
Type of the email will be text/html.
What could be the best possible solution to send a image as a message body when the method send takes only String argument?
Thanks