public abstract class EmailAttachmentBase extends Attachment
Provides a base class for email attachments.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Gets the attached file content.
|
String |
getContentId()
Gets the content id of this
. |
com.aspose.ms.System.IO.Stream |
getContentStream()
Gets a stream from the attached file.
|
String |
getMediaType()
Gets the media type of this
. |
void |
setContent(byte[] value)
Sets the attached file content.
|
void |
setContentStream(com.aspose.ms.System.IO.Stream stream)
Updates attached file from a stream.
|
createWatermarker, createWatermarker, createWatermarker, getDocumentInfo, updateContentpublic byte[] getContent()
Gets the attached file content.
getContent in class Attachmentpublic final String getContentId()
EmailAttachmentBase.EmailAttachmentBase.public com.aspose.ms.System.IO.Stream getContentStream()
AttachmentGets a stream from the attached file.
getContentStream in class Attachmentpublic final String getMediaType()
EmailAttachmentBase.EmailAttachmentBase.public void setContent(byte[] value)
Sets the attached file content.
setContent in class Attachmentvalue - The attached file content.public void setContentStream(com.aspose.ms.System.IO.Stream stream)
AttachmentUpdates attached file from a stream.
setContentStream in class Attachmentstream - The stream to update attached file from.Copyright © 2026. All rights reserved.