public static class EmailTemplate.ByteArrayAttachment extends Object implements EmailTemplate.Attachment
Constructor and Description |
---|
ByteArrayAttachment(String leafNameInclExtension,
String mimeType,
byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
String |
getLeafNameInclExtension()
For example "invoice.pdf"
|
String |
getMimeType()
For example "application/pdf"
|
InputStream |
newInputStream()
To provide the bytes of the file
|
public String getLeafNameInclExtension()
EmailTemplate.Attachment
getLeafNameInclExtension
in interface EmailTemplate.Attachment
public String getMimeType()
EmailTemplate.Attachment
getMimeType
in interface EmailTemplate.Attachment
public InputStream newInputStream()
EmailTemplate.Attachment
newInputStream
in interface EmailTemplate.Attachment