Attachment in MIME mail

I’m writing a Lotus Script Agent to send a MIME mail using new R6 method.All works fine for the body but I find only strem.open method to put attachment in mail.

The problem is that strem.open accept only the path of the file to put in mail but I want to take attachment from another Notes Document.

The only way I found is to detach the file and call strem.open to take it but I don’t link this way.

Any suggestion ?