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 attachment of email
- Author:
 - hieplq
 
- 
Constructor Summary
Constructors - 
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.BodyPartgetBodyPart(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:
 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
 
 -