RichTextItem Inline Image

Hello,

I have a Java Agent which generates an image (JPEG or PNG) that I would like to store inline in a RichTextItem field such that the image is viewable in a form.

I have found examples on how to import the image using the NotesUIDocument.import method. However, this method require saving the image as a file first.

I would like to avoid saving the image as a file and store the image (OutputStream or ByteArray) data directly to the RichTextItem field as an inline image.

Any suggestions?

Subject: Embed Image in Form

If embedding the image directly in the form is easier (without the RichTextItem) that would be fine. As long as the image is unique to each document and can be updated by the user when the Java Agent runs.

Thanks,