embedObject name

hi i wrote a java app which attach a file in a rich text.

running on a client 6.5.3 the name of the attach file does not include the path (ex test.pdf)

running on a server 6.5.6 the name of the file include the path (ex: e:\data\domino\data\test.pdf) , causing a 404 error

when viewing ("")

any idea?

Subject: embedObject name

I am very surpised you have a path in there.Are you saying the actual $FILE item has a path in the value?

A file attached to a document is just a file and there should be no path there at all.

To avoid problems when using them files you can probably use some code that parses out any existing path-information.

Subject: RE: embedObject name

ty kenneth,but i can t parse the name of the file, the embedObject method need the path of the file

myrtitem.embedObject(EmbeddedObject.EMBED_ATTACHMENT, null,eo2.getSource().substring(0,eo2.getSource().lastIndexOf(“.”))+“.pdf”, “Pièce signée”);