Embed picture using Java or Formula

I’ve seen a few questions related to this, but so far, no real answers…

I’m basicaly just trying to embed a jpg or bmp into a document so that it is displayed as an image when the document is opened. I need to do this programatically.

Right now, I’m tyring a Java agent. I can get it to be an attachement (which I don’t want), if I try:

imageField.embedObject(EmbeddedObject.EMBED_ATTACHMENT,null,“c\TheLogo.JPG”,“Logo”);

According to the help file, I should be able to make it an embedded object by trying:

imageField.embedObject(EmbeddedObject.EMBED_OBJECT,null,“c\TheLogo.JPG”,“Logo”);

but this only give me:

NotesException: Could not create OLE file from c:\Unifrax Logo-Blue.JPG

What am I doing wrong? Do I need to somehow create the OLE object from the image file first, and then reference it?

I’d like to state right now to the gentleman who keeps pushing his Midas product, that I will not be able to entertain 3rd party software options.

Thanks in advance for your help,

Chris

Subject: Embed picture using Java or Formula

This discussion yesterday should help:

Date

Topic

06/10/2008

2

Pick up a jpg file off disk and paste as image inside table cell (Mark Hughes)

RE: Pick up a jpg file off disk and paste as image inside table cell  (Andrei Kouvchinnikov 06/10/2008)









Either follow the DXL track or perhaps use a third-party tool such as II2LN  (Robert Ibsen Voith 06/10/2008)