Package org.compiere.util
Class EmailSrv.EmailEmbedProvideBase64Data
java.lang.Object
org.compiere.util.EmailSrv.EmailEmbedProvideBase64Data
- All Implemented Interfaces:
EmailSrv.ProvideBase64Data
- Enclosing class:
- EmailSrv
public static class EmailSrv.EmailEmbedProvideBase64Data
extends Object
implements EmailSrv.ProvideBase64Data
../../..
this class implement source of image from attach of email
- Author:
- hieplq
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBase64Data
(String contentId) get image from image embed in email content by its content_id download it and convert to string base64javax.mail.BodyPart
getBodyPart
(String contentId)
-
Constructor Details
-
EmailEmbedProvideBase64Data
-
-
Method Details
-
getBase64Data
get image from image embed in email content by its content_id download it and convert to string base64- Specified by:
getBase64Data
in interfaceEmailSrv.ProvideBase64Data
- Parameters:
contentId
-- Returns:
- null when can't find attach has this contentId
- Throws:
javax.mail.MessagingException
IOException
-
getBodyPart
public javax.mail.BodyPart getBodyPart(String contentId) throws javax.mail.MessagingException, IOException - Specified by:
getBodyPart
in interfaceEmailSrv.ProvideBase64Data
- Throws:
javax.mail.MessagingException
IOException
-