I convert a msg file to HTML by MailMessage mail = MailMessage.load(msgPath); SaveOptions opt = SaveOptions.createSaveOptions(MailMessageSaveType.getHtmlFormat()); mail.save(htmlPath, opt);
Some images are changed to Base64 encoded and they can be displayed in HTML.
Other images remain in CID, but the corresponding image file is not there.
Is there any save option that can change all inline images to Base64 encoded?
Could you please try setting the EmbedResources property to true for HtmlSaveOptions and see if it solves the problem? If the issue persists, please share your sample input message file with us for our further consideration.
We have tested it with the latest version of Aspose.Email for Java 6.7.0 and were not able to observe any such problem at our end. Please have a look at the following sample code and attached output html file generated as a result of this code and let us know your feedback.
Sample Code:
MailMessage msg = MailMessage.load(“761174\aceoffix.msg”, new MsgLoadOptions());
Please get a 30-day temporary license free of cost for testing the issue at your end and let us know your feedback. The evaluation limitations are as mentioned here in our documentation that shows that only 3 attachments as well as inline images can be extracted from an MSG file.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.