Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! 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 by 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

Status Under Consideration
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Jul 19, 2018

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.

  • Attach files
  • Guest
    Reply
    |
    Aug 24, 2018

    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!

  • Guest
    Reply
    |
    Jul 21, 2018

    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

  • Guest
    Reply
    |
    Jul 19, 2018

    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.