mapi_attachment

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

NameTypeAccessDescription
filenamestd::stringRead/WriteStores the attachment’s file name
datastd::vector<std::uint8_t>Read/WriteHolds the attachment’s raw byte content
mime_typestd::stringRead/Write
content_idstd::stringRead/Write
embedded_messagestd::shared_ptr<mapi_message>Read/Write
propertiesmapi_property_collectionRead/Write

Methods

SignatureDescription
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

See Also