Problem solve Get help with specific problems with your technologies, process and projects.

Extracting imported image into rich text field

How do I extract and put images in a folder if the image is imported into a rich text field?
There's not an easy, built-in way to do this. There is no rich text class or method to handle imported images -- only attached images.

You can use third-party tools to do this, such as Midas rich text API from Geniisoft. It can be done with the Notes C API, though deciphering the rich text "CD" records is a sort of a black art. Or, if you can do a little custom programming, use the NotesDXLExporter class to get an XML description of the document, use the XML manipulation classes to scan it for "picture" tags, and convert the encoded data back to binary, writing this data to a file. I don't have sample code on hand, but depending how you intend to deploy it and how much your time is worth, it's probably more cost effective to use Midas.

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on XML and Web Services for Lotus Notes Domino

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...