Lotus Notes DXL Notesbitmap to GIF

后端 未结 3 1662
醉梦人生
醉梦人生 2021-01-27 16:16

I am converting lotus notes document library inline images to gif images using dxl logic of reading Filedata and converting it to base64 byte[] and creating a gif images. The co

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-27 16:59

    Using DXL you can extract the 'filedata' for $File item containing the bitmap image. The filedata is Base64 encoded so it will need to be decoded to obtain the binary data.

    The structure of the Bitmap data is as follows: 1. WORD - Number of Blocks 2. One or more WORDs for each block with the length of each block 3. WORD - TYPE_COMPOSITE Flag

    Following the header are the CD Records for the bitmap. Typically the CD records are: - Graphic - Bitmap Header - One or more Bitmap Segments - Bitmap Color Table - Bitmap Pattern Table

    What you can do is remove all bytes up to the TYPE_COMPOSITE flag (but keep the TYPE_COMPOSITE flag bytes) and write the binary data to a file.

    Then using the AppendRTFile method of NotesRichTextItem you can import the image into a rich text item.

    More detailed information on doing this and a sample agent to parse the binary data can be found on our website at: https://www.agecom.com.au/support/agecomkb.nsf/0/58cbf10f0ab723c9ca25803e006c7de8

提交回复
热议问题