<SOLVED> How to append notesembeddedobject to notesrichtextitem?

Now there are some documents which has files attached (using web file upload feature). I want to move it to another database, where the files should be embedded in a rich text item, rather than attached to the document.

I was tring to use notesRichTextItem.EmbedObject method, but that only works for file which has been saved to local drive. Can I append a notesembeddedobject directly to a notesrichtextitem?

Thanks a lot.

I didn’t know about “Kill” statement, so it is fine to save the attachment, embed to rich-text field, and then kill the file in local.

Please refer to http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/e5607219a47a20be8525718b006e99b4?OpenDocument&Highlight=2,richtext,attachment