EmailAttachmentBase
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.common.Attachment
public abstract class EmailAttachmentBase extends Attachment
Provides a base class for email attachments.
| Method | Description |
|---|---|
| getContentId() | Gets the content id of this . |
| getMediaType() | Gets the media type of this . |
| getContent() | Gets the attached file content. |
| setContent(byte[] value) | Sets the attached file content. |
| getContentStream() | |
| setContentStream(System.IO.Stream stream) |
public final String getContentId()
Gets the content id of this .
Returns: java.lang.String - The content id of this .
public final String getMediaType()
Gets the media type of this .
Returns: java.lang.String - The media type of this .
public byte[] getContent()
Gets the attached file content.
Returns: byte[] - The attached file content.
public void setContent(byte[] value)
Sets the attached file content.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | byte[] | The attached file content. |
public System.IO.Stream getContentStream()
Gets a stream from the attached file.
Returns: com.aspose.ms.System.IO.Stream
public void setContentStream(System.IO.Stream stream)
Updates attached file from a stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.