I’ve been asked to prototype an application that converts pictures pasted into a Rich Text Field into attachments
(dont ask why … for this piece of work I’m just a coder! AFAIK Its part of an email application mostly to do with problems reported using screen grabs)
The customer is using R5 but is moving to R6 real soon.
I quickly found that using R5, you cant get a handle on the pasted picture (attachment and objects yes … pictures no).
I’ve looked at some of the documentation for R6 … and can see theres improvement
but my first impression is that you still cant get at pictures.
Is it worthwhile trying?
or should I get a third party library to manipulate RT at a lower level?
Cheers
AJW
Subject: This is one of the strengths of Midas from Genii Software
Alan - IBM
Subject: Thanks. I knew that 3rd part tools were available
and in fact I have have confirmed the latest release of Midas for R6 will allow “pasted” pictures to be exported as a file.
(Apparently Notes R5 etc uses a special compressed format for such images, which cant simply be converted to GIF of JPEG)
Midas certainly would be a solution. Thank you for directing me to it. However, getting my customer to approve a third party software component will take a little time.
I’m still hoping that one of the many experts out there had found a quick way using only out of teh box Notes/Domino technology.
Subject: ans someone has suggested an alternative
http://www.rtlib.com/
Cheers
AJW
Subject: Finding and Manipulation Pictures pasted into a Rich Text Field
You can get the data using C API functions or the Lotus XML Toolkit. In Notes 6 you can use ordinary LotusScript (a NotesDXLExporter). None of these is third party, though the XML Toolkit requires an install on every machine where the code will run.If you need a single solution for R5 and Notes 6, use the API. You can call the functions from LotusScript. The NotesPeek tool in the Sandbox shows you the format of the data. There are various graphics formats. Some of them are the same as external file formats, but there is also a Notes bitmap format.
To help you assess whether it is worthwhile trying, you might be interested in the sample LotusScript code here for importing graphics files.
Subject: Thanks … I suspected the API would offer a getout
if all else failed.
I’ll investigate the various samples you’ve pointed me at
and see if the customer is prepared to pay for the extra code/debug time.