Extract inline images from Lotus Notes using Lotus Notes Java API

送分小仙女□ 提交于 2019-12-11 13:39:35

问题


I'm having issues to extract inline images that are pasted in the email body if the emails are sent from external email (like gmail for example) into the Lotus notes.

The emails which are sent from Lotus Notes itself has no issues and I'm able to retrieve the inline images by using the document.generateXML() method and parsing through <picture> tag the stream.

My real concern is how to extract from the external emails (like gmail).


回答1:


This is a known issue in that a MIME inline attachment is not the same as a Notes attachment. When the mail comes in, if the File component is over a certain size it will create a $FILE you can interact with.

However in some cases, or low file size this attachment remains within the MIME data. Which you can't get to with the Java API.

You can tell the server to force attachments to be stored as $FILE by using the following notes.ini setting.

MIMEForceAttachments=1

This will only change new mails coming in. Also it will treat every object that is not text and inline as an attachment. So images may also be converted.




回答2:


You can copy the image into another program (e.g. Paint, Ifranview) if you edit the Email. Steps:

1) Highlight the Email in the main Inbox view  
2) Action -> Edit  
3) Select image and copy  
4) Open Ifranview and paste the image, Save it  



回答3:


Copy and paste seems to work for images if you open the message in a new window

Right click on the message and select 'Open in New Window'. Now right click on the image and select copy. Now you can Paste the image into paint, Word etc. I have lotus notes 8.5 and this works for me



来源:https://stackoverflow.com/questions/12360869/extract-inline-images-from-lotus-notes-using-lotus-notes-java-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!