Cannot extract objects or objectlinks

Hi all,

I want to extract ole objects and attachments from notes documents. I can crawl through the obedded-objects-vector ob the richtext-body-item to get all EmbeddedObjects. But I am only able to call the methods extractFile/getInputStream/getReader with attachments. When I call these methods with oleobjects I encounter the folling error:

NotesException: Cannot extract objects or objectlinks

NotesException: Cannot extract objects or objectlinks

Is it not possible to extract those types? This would be a dilemma.

Thanks for your help,

Thomas

Subject: The same problem

Thank you both of you for your help…

Now, I can get the names of the attachments files but i can not get the attachment file due to the following error:

** I am trying to get an attachment file with the following code:

EmbeddedObject em = doc.getAttachment(sNameAttach);

em.extractFile (“c:\temp\” + em.getSource ());

When i am trying to extract an attach file, i got the following runtime exception:

Exception => null NOTES ID ERROR: 4038 NOTES NAME ERROR: The requested operation could not be completed

Do you have any idea for solving this problem??

Kind regards,