We are loading EML file using Aspose.Network.Mail.MailMessage.Load(InputDataStream, Aspose.Network.Mail.MessageFormat.Eml);
Then we are converting msg.HtmlBody to image using TiffBitmapDecoder.
But embedded images are not included in the converted image.
Can you please check and let us know your suggestions ?
We are currently using 220.127.116.11 version of Aspose.Email dll.
Same issue exists with latest version 19.4 of Aspose.Email.dll.
Ok sure. Please find attached the files.
Code.txt - Code details that we have used
Email4.eml - EML file used for testing purpose (Please maintain confidentiality for this email)
ConvertedImage.003 - Converted image
Please check the issue and let us know your suggestions.
I have observed the sample code and its using legacy Aspose.Network API. Can you please share latest sample code that you have used using Aspose.Email for .NET 19.4 API with which you are able to reproduce the issue on your end.
We are using the shared code in production also. I have not made any changes while trying with latest version.
Can you please check the existing code and let me know any suggestions you have for resolving this issue.
Thank you for sharing the information. I have tried using the sample code and unfortunately I am unable to use it owing to custom class calls. Can you please provide a working sample example that we may use on our end to verify the issue.
Ok. Can you please try it on your regular sample code and check if is having the mentioned issue ?
I tried with various versions and methods but it doesnt work.
Also one more observation is that issue exists in message format also. Email message (.msg) with embedded images are not included while converting to TIFF image.
I have used following sample code to export EML to MHT format and it is exported fine. As shared earlier, we are unable to use your custom code on our end. However, from API point of view the rendered output does have embedded image inside it.
Thanks for the details.
I checked with latest version but embedded images are not carried while converting to images.
Please find attached the sample source code which we have used for converting Eml and Msg files to images. AsposeTest.zip (10.7 KB)
Please let us know your suggestions,
Thank you for sharing the information. An issue with ID EMAILNET-39464 has been created in our issue tracking system to further investigate the issue. We will share notification with you as soon as the issue will be fixed. For the time being you may also consider earlier shared approach to export EML to MHT and then using Aspose.Words to export that to TIFF.
Thanks for the details.
Please share when can we expect fix for the issue.
We tried to convert EML to MHT and then to TIFF using the sample code shared prior.
Saved Mht file contains the images but converted Tiff image doesn’t contain the embedded images.
This scenario is happening with MSG file also.
Please review and let us know your suggestions.
We have converted the MHT file to TIFF using the latest version of Aspose.Words for .NET 19.4 and have not found the shared issue. Please use Aspose.Words for .NET 19.4. We have attached the output TIFF file with this post for your kind reference. 19.4.zip (55.1 KB)
Thanks for the information.
We have used latest version of Aspose.Words with the sample code shared by us.
It is not including the embedded images.
Please find attached the sample code. check the source code and let us know if there are any suggestions.
Thanks for the suggestions.
Code that I have shared is a sample code which is taken from a complex Convert application which serves as single application to convert all types of files along with some other important functionality.
It is designed systematically to use stream objects instead of processing with actual file objects.
So I would request you to provide suggestion with respect to the sample code shared.
Is there any way to get the stream object for the email body which should include the embedded images also ? We should be able to accommodate this issue with less coding changes so that it doesnt affect the client at whole.
Please note that same issue exists with message file also. It doesnt include embedded images while conversion.
Other approach may not work for our scenario. According to the details mentioned by me in previous post, we will not be able to convert the complete image into Tiff directly since we are doing some manipulation related to email subject, To and From etc.
So it would be helpful if you provide suggestions/fix according to the sample code shared.
We would be looking forward to get status on the issue fix.
I have observed your requirements related to issue being reproduced in MSG file. I suggest you to please share the MSG file reproducing the issue so that we may separately log the issue in our issue tracking system.