Free Support Forum -

Aspose.Email.dll behavior with extension-less attachment

Hello Team,
I am using your Aspose.Email.dll in our product, Current Version of Aspose.Email.dll is
When User has a Mail which has a extension less attachment, using Aspose library user is trying to convert attachment to tiff files. user is able to convert it to tiff, but the tiff is blank tiff with some date time format in header of that tiff file. attached resultant tiff file. (19.3 KB)

let me know, if you want any further information about the same.



Thank you for contacting Aspose Support.
We were unable to reproduce the issue reported by you. We used the code snippet given below for testing. The file used for testing is attached here along with the generated output. (29.9 KB)

MailMessage msg = MailMessage.Load("TiffTest.msg", new MsgLoadOptions());

// Convert MSG to MHTML and save to stream
MemoryStream msgStream = new MemoryStream();
msg.Save(msgStream, Aspose.Email.SaveOptions.DefaultMhtml);
msgStream.Position = 0;

// Load the MHTML stream using Aspose.Words for .NET and Save the document as TIFF image
Document msgDocument = new Document(msgStream);
msgDocument.Save("TiffTest18.3.tif", SaveFormat.Tiff);

Please test using the sample file provided and share your feedback with us. We are looking forward to your response.