Ask the Expert

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.

This was first published in October 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: