Can I use LotusScript to copy a Thumbnail field?

I have a rich text lite thumbnail field (called “Thumbnail”) that is populated, but the following code doesn’t work…

Sub Initialize

Dim session As New NotesSession

Dim db As NotesDatabase

Dim col As NotesDocumentCollection

Dim doc As NotesDocument

Dim rt As NotesRichTextItem

Dim aeo As Variant

Dim eo As NotesEmbeddedObject



Set db = session.CurrentDatabase

Set col = db.UnprocessedDocuments

Set doc = col.GetFirstDocument

Set rt = doc.GetFirstItem("Thumbnail")

aeo = rt.EmbeddedObjects

Set eo = rt.GetEmbeddedObject("thumb.jpg")

'At this point, neither aeo nor eo contain anything even though the rich-text light thumbnail field named "Thumbnail" contains a field and there's a corresponding $FILE field containing a file named thumb.jpg.

End Sub

Copying the Thumbnail field to a new document using rt.CopyItemToDocument doesn’t display the image on the new document.

Copying the corresponding $FILE field causes an error because LotusScript doesn’t allow copying fields of type “attachment” or “other”.

Anyone got any ideas?

Subject: I need this too

As I have to done this too I am trying to find any solution, but only one which google give was this unsolved post.Has this any solution? Please help!

Subject: I have the same issue in java

the following code doesn’t provide any solution.

		RichTextItem destination = (RichTextItem) doc.getFirstItem("ThumbAttach");

		RichTextItem source = (RichTextItem)pernameDocument.getFirstItem("Photo");

		destination.appendRTItem(source);

		doc.save(); 

I hope IBM will provide us a good example in order to use