public static class EmailTemplate.ByteArrayAttachment extends Object implements EmailTemplate.Attachment
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes |
protected String |
leafNameInclExtension |
protected String |
mimeType |
| 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
|
protected String leafNameInclExtension
protected String mimeType
protected byte[] bytes
public String getLeafNameInclExtension()
EmailTemplate.AttachmentgetLeafNameInclExtension in interface EmailTemplate.Attachmentpublic String getMimeType()
EmailTemplate.AttachmentgetMimeType in interface EmailTemplate.Attachmentpublic InputStream newInputStream()
EmailTemplate.AttachmentnewInputStream in interface EmailTemplate.AttachmentCopyright © 2003–2018. All rights reserved.