Determine MIME type of attachment?

Hello,

I have a form on the web that the user can upload a file to. When the user saves this form, a Java agent is run. How can this agent access the MIME type of the attached file? I know my file is getting attached properly because the link to it works. My agent needs the mime-type, though. I’ve tried:

Document.getMimeEntity();

and

Item.getMimeEntity();

but they both return null (And I KNOW the Item I check is the attachment).

Thanks for any help.

Subject: Determine MIME type of attachment?

I think you should have a look at the ConvertMIME property of the NotesSession class. It will be really helpfull.

Alain