Welcome to the #dominoforever Product Ideas Lab! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated jointly by the IBM & HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino page.

Enable Lotusscript classes to import images on backend

From Carl Tyler

Very often I have the need to import a graphics into a Domino rich text field.  Example JPG or GIF file.  Currently there are no backend classes to do this.  There should be a simple Lotusscript function to enable this, and allow for options like resize and rotate on import.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Jul 19 2018
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    July 19, 2018 08:23

    There is a way to do it using Mime: https://www.grange.com.br/posts/lotusscript-code-to-embed-a-picture-into-a-notes-richtext-item/

     But I agree, it should be easier.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    July 21, 2018 23:12

    That code is useful, but using streaming to bring it in limits it when e.g. running on a batch of documents - stream has an undocumented memory leak that will crash after ~40-80 docs

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    August 24, 2018 13:18

    When designing a picture filtering application (to remove logo pictures from a mails into a helpdesk mailbox but preserve the screenshots) I noticed unstable behaviour when reusing objects of type NotesStream, NotesDXLExporter, NotesDXLImporter and NotesDomparser. When rewritten to recreate the needed objects for each document, stability returned.

    The objects where isolated in a Sub which was called for each document, and only initialized inside that Sub. This worked great!