I am trying to import pictures into a Notes database via a background agent. Do you know any third-party tools that can help, other than Midas Rich Text LSX?
The foreground Import command is the only way I know of to get a picture included in Rich Text "from scratch" without writing C or C++ Notes API code (or using a third-party tool such as Midas).
There probably is a way to do it with DXL (Domino-XML) but I don't know how, and this would also involve creating a new document.
If you have a picture already in a Rich Text field and you want to include that picture as part of the contents of another Rich Text field, AppendRTItem method will help. So if there are a limited number of pictures and you just want to choose the right one for the current document, you can create a set of reference documents that contain just two fields -- a Rich Text field containing one picture and a text field with a unique identifier that you use to look up the reference document using GetDocumentByKey.
This is also discussed in the Rich Text chapter of the Domino Designer 6 Redbook.
If this is a Web application, you can attach the image file and use pass-thru HTML to create an <IMG> tag that displays the image, using the URL of the attached file (.../$FILE/filename).
Also take a look at Send HTML e-mail with embedded images.
Do you have comments on this Ask the Expert Q&A? Let us know.
Dig Deeper on XML and Web Services for Lotus Notes Domino
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.