Free Support Forum - aspose.com

Multipart MIME http message

We ask for to an external server a GET http request and a MIME type message is sent back (just like attached file). Within the message there are attached files, some of them binary, so that is difficult for us to extract. So we wondered if your Aspose.network tool can differentiate between all differents parts of the multipart mime received message, and if we finally get/extract the binary file.

Thanks very much!

Fran

Hello, Fran,

Aspose.Network can parse MIME files. But the file you attached is not compliant to mime protocol. Could you let me know how you get such file? Could you provide the original file that send by the http? That could help us to investigate.

Thanks,

Hi,

I hope this file could be helpful to you. Thanks & regards!

Fran

Hello,

I have tested your file. Aspose.Network can parse it properly.

Check it out:

MailMessage msg = MailMessage.Load(filename);

You can find the xml data is loaded to msg.AlternativeViews[0], the other two parts are loaded to msg.Resources collection.

Thanks,