Overview
mapi_attachment is a class in Aspose.Email for CPP.
Inherits from: mapi_attachment.
Properties
| Name | Type | Access | Description |
|---|
filename | std::string | Read/Write | Stores the attachment’s file name |
data | std::vector<std::uint8_t> | Read/Write | Holds the raw byte content of the attachment |
mime_type | std::string | Read/Write | |
content_id | std::string | Read/Write | Contains the attachment’s content identifier |
embedded_message | std::shared_ptr<mapi_message> | Read/Write | Provides access to the embedded mapi_message, if any |
properties | mapi_property_collection | Read/Write | |
Methods
| Signature | Description |
|---|
from_bytes(filename: std::string, data: std::vector<std::uint8_t>, mime_type: std::string, content_id: std::string) → mapi_attachment | |
from_stream(filename: std::string, stream: std::istream, mime_type: std::string, content_id: std::string) → mapi_attachment | |
load_data(stream: std::istream) | Reads attachment data from the given input stream into the object |
is_embedded_message() → bool | |