Extracting Attachments from Domino

Ever wondered how you can extract attachments programmatically from domino? Especially Notes V3 Style attachments, who are not bound to a richtext field, causing trouble.

Use the code below to retrieve all attachments bound to either a document or a richtext field using the domino Java API. This one works in a local agent and also remote on a DIIOP call.