This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 7, 2015, 8:50 AM
2 Posts

How get RichTextItem HTML content with big image?

  • Category: Other
  • Platform: Windows
  • Release: 9.0
  • Role: Developer
  • Tags: HTML,RichText,MIME
  • Replies: 3

To get HTML content of a RichTextItem, I use the following code :

Item vItem = aDocument.getFirstItem(aFieldName);
String vHTML = null;
if (null != vItem) 
{       
    if ((vItem.getType() == Item.RICHTEXT) || (vItem.getType() == Item.MIME_PART))
    {     
        DominoDocument vWrappedDocument = DominoDocument.wrap(
            aDocument.getParentDatabase().getFilePath(), aDocument, null, null, false, null, null);                 

        DominoRichTextItem vDominoRichTestItem = null;
        if (vItem.getType() == Item.RICHTEXT)
        {
            /**
             * create a DominoRichTextItem from the RichTextItem       
             */
            vDominoRichTestItem = new DominoRichTextItem(vWrappedDocument, (RichTextItem) vItem);       
        } 
        else 
        {         
            /**
             * create a DominoRichTextItem from the Rich Text item that contains MIME       
             */
            vDominoRichTestItem = new DominoRichTextItem(vWrappedDocument, aDocument.getMIMEEntity(aFieldName), aFieldName);      
        }   


        vWrappedDocument.setRichTextItem(aFieldName, vDominoRichTestItem);
        vHTML = vDominoRichTestItem.getHTML();
    }
    else
    {
        vHTML = vItem.getValueString();
    }
}     

But if the RichTextItem contains a large image (eg a screen copy), the method getHTML return null.

I try browsing mime content, with this kind of code, but without success:

http://www-12.lotus.com/ldd/doc/domino_notes/rnext/help6_designer.nsf/f4b82fbb75e942a6852566ac0037f284/6320b5c1150c7d3e85256c54004dd9a2?OpenDocument

How to do ? Thank you

Sep 10, 2015, 1:33 PM
586 Posts
hmm

I don't know the answer to this one.

Since this question is pretty specific it would be a great fit for StackOverFlow where a lot more technical xpagers hang out.

Sep 10, 2015, 7:20 PM
6 Posts
alt

Does it behave any differently if you use vWrappedDocument.getValue(aFieldName).toString()?


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal