I get the following error for all of the properties-based getters I’ve tried:
Sorry, the first part of this is programmer error. The superclass has the method, so my reflection didn’t find it via getDeclaredMethod.
Hi Aaron,
Thank you for writing to Aspose Support team.
Please use the get_Item(index) method to get the attachment at respective index. The get method is obsolete and is no more available in the latest version of the API. Please let us know if we can be of any additional help to you in this regard.
Sample Code:
MapiMessage mapi = MapiMessage.fromFile(“sample.msg”);
ByteArrayOutputStream byteArrayOutputStream= new ByteArrayOutputStream();
mapi.getAttachments().get_Item(0).save(byteArrayOutputStream);