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
Constructors Constructor Description EmailEmbedProvideBase64Data(EmailSrv.EmailContent emailContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBase64Data(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 Detail
-
EmailEmbedProvideBase64Data
public EmailEmbedProvideBase64Data(EmailSrv.EmailContent emailContent)
-
-
Method Detail
-
getBase64Data
public String getBase64Data(String contentId) throws javax.mail.MessagingException, IOException
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
-
-