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 StringgetBase64Data(String contentId)get image from image embed in email content by its content_id download it and convert to string base64javax.mail.BodyPartgetBodyPart(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:
getBase64Datain interfaceEmailSrv.ProvideBase64Data- Parameters:
contentId-- Returns:
- null when can't find attach has this contentId
- Throws:
javax.mail.MessagingExceptionIOException
-
getBodyPart
public javax.mail.BodyPart getBodyPart(String contentId) throws javax.mail.MessagingException, IOException
- Specified by:
getBodyPartin interfaceEmailSrv.ProvideBase64Data- Throws:
javax.mail.MessagingExceptionIOException
-
-