I am working on a Websphere portal “portlet” that allows the end user to upload files as Domino document attachments. I am using NCSOW.jar. The problem is: RichTextItem.embedObject only takes file name as a parameter to create a file attachment, not inputstream(I have it from user web upload). I guess the class assumes a rich client with file name dialogue is used for this. It seems the only solution for me is to save it as a temp file on the portal server and then create the attachment from the file. The temp files can cause problems depending on how they are managed and it is very inefficient. Any advise?