Hello Aspose Team,
I have a problem converting .eml to .pdf. In the majority of the time it works fine, but sometimes a random e-mail gets converted like that in attachment.
Here’s the code I am using. Is there something wrong with it? Or with the .eml?
ByteArrayOutputStream dstStream = new ByteArrayOutputStream();
MailMessage mail = MailMessage.load(filePath);
ByteArrayInputStream srcStream = new ByteArrayInputStream(dstStream.toByteArray());
Document doc2 = new Document(srcStream);
Please, any help would be greatly appreciated.