How to get the properties from attachments using the Java API

Situation:I have a Lotus notes document with multiple attachments in various rich text fields. The attachments are “physically” stored within “$FILE” fields.

Using the Lotus Notes Java (backend) API, I need to obtain the properties of these attachments (in particular the “Modified” date) so that I can identify the one with the latest modification date.

It is possible to get the attachment properties if the document is rendered as an XML file using the DXL exporter. However, in that case I get a very large XML document, because the attachments are embedded in the XML document, which causes memory issues.

Is there a way to get the properties from attachments using the Java API in a more efficient manner?

Thank you very much for any help and best regards,

Christoph

Subject: Try this

You could use the evaluate method i.e.

Vector v = session.evaluate(“@AttachmentModifiedTimes”, doc);

to get the list of modified times, then once you have identified which is the most recent, use that index value on the return value from the same call using @AttachmentNames to identify which one it is.