I have trouble embedding a JPEG into a Notes document by means of an outside-notes java-application. It seems that Notes cannot embed the picture because the platform is not an OLE platform.
NotesException: Could not create OLE file from C:\DOCUME~1\CHRIST~1\LOCALS~1\Temp\notes74555E\6C041783.TMP
How come is this? There are no problems with doing the exactly same thing from within Notes using Lotus Script.
I need to embed the pictures in a Notes document as a real picture, not as an attachment. I must be possible for a user to see the picture when she opens the doument. Does anybody have any ideas. Maybe a hint about how to use JNI to access a function in the DLL’s to do it???
Embedding is not what you want anyway. You want the image imported, or you will cause numerous other problems. There are good ways and bad ways, but if a third party product is an option, you might want to try our @Midas Formulas, which, although just finishing up a beta, allows you to manipulate rich text in many ways. In this case, you would use the command:
to call the @Midas Formulas to append the graphic to the rich text Body field. Whilke it might seem counterintuitive to use a formula language extension from Java, it works very well because it requires no integration or configuration with Java and is not dependent on Java versions or other externals.