mapi_attachment
Overview
mapi_attachment is a class in Aspose.Email FOSS for C++.
Description
mapi_attachment is a class in the Aspose.Email FOSS library for C++ that exposes 4 methods and 6 properties for programmatic use.
Core capabilities include: std::string; std::vector<std::uint8_t>; std::string. These operations enable developers to integrate mapi_attachment functionality directly into C++ applications.
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 attachment’s raw byte content |
mime_type | std::string | Read/Write | |
content_id | std::string | Read/Write | |
embedded_message | std::shared_ptr<mapi_message> | Read/Write | |
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 content from the given input stream into the object |
is_embedded_message() → bool |