We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Read named property PidLidMileage

Is there a possibility to read the property mileage as a bytearray? i would need the value of mileage as an utf-8 string, no matter what encoding the mail is encoded.

Hi Josef,

Thank you for contacting Aspose support team.
Following sample code is used to retrieve mileage as an utf-8 string. Please give it a try and let us know the feedback.

MapiMessage mapi = MapiMessage.fromFile("SampleTask.msg");
byte[] b = mapi.getMileage().getBytes(Charset.forName("UTF-8"));

If it does not fulfill your requirement, please send us a sample file and steps to re-produce the scenario. We will assist you further accordingly.