Why can't I extract embedded objects in the body of a message using LotusScript?

Why can't I extract embedded objects in the body of a message using LotusScript?

Why can't I extract embedded objects in the body of a message using LotusScript (Notes 6.5.2)?

I can get attachments using the EmbeddedObjects property, but not graphics in a message. I'm using this code to test to see what is embedded:

If Isarray(rtItem.EmbeddedObjects) Then
 Forall Object In RTItem.EmbeddedObjects
  Select Case Object.Type
   Case EMBED_ATTACHMENT:
     Messagebox "Attachment"
   Case EMBED_OBJECT:
     Messagebox "Embedded"
   End Select
  End Forall
End If

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

If the graphic in the message is referenced via an HTML link (i.e., img src), the "object" is NOT and OLE object, and, therefore, is not accessible through the code you are calling.

The code you are writing is correct for handling any file attachment or OLE file (i.e., [Create] menu --> [Object]), but will not work if the "object" you are looking at is enclosed in HTML.

Add some code to go directly to the source of the referenced file and save it to your required location, along with any other EmbeddedObjects in the document.

This was first published in July 2005