DXL Embedded Objects

Currently I am developing a little application in Lotus notes. One of the things it should do is adding a new hotspot to a richttext field in a notesdocument.

After a few hours of playing around with DXLimporter, Exporter en Java I got that part working. There is only one small problem currently that I can not solve. When I add a element to the richttextitem which also holds an embedded object (file or something) the file gets corrupted as soon as I re import the document.

Should I set some extra parameters to the exporter to handle files correctly?

Subject: Still searching for a clue

Anyone got a clue how to solve this?