A CamsAttachment object typically contains an image associated with a CamsNotification object.
Each attachment has a unique ID and is provided with a MIME type identifier. THe form of the attachment is as Base64 encoded string.
Available in version 7.3.8 of Decoder SDK. Requires a server version greater than 7.3.7
#include <CamsAttachment.h>
Public Member Functions | |
| DB_EDGEVIS_SDK std::wstring | GetId () const |
| Retrieve the unique ID for this attachment. | |
| DB_EDGEVIS_SDK std::wstring | GetMIMEType () const |
| Retrieve the MIME type for this attachment. | |
| DB_EDGEVIS_SDK bool | IsJPEG () const |
| Convenience method to determine if this attachment is a JPEG image. | |
| DB_EDGEVIS_SDK std::wstring | GetContent () const |
| Retrieve the content of this attachment as a Base64 encoded string. | |
| DB_EDGEVIS_SDK std::wstring EdgeVisDecoderSDK::CamsAttachment::GetId | ( | ) | const |
Retrieve the unique ID for this attachment.
This will match the attachment ID from the CamsNotificationAttachmentInfo object obtained from the CamsNotification::GetAttachments method.
| DB_EDGEVIS_SDK std::wstring EdgeVisDecoderSDK::CamsAttachment::GetMIMEType | ( | ) | const |
Retrieve the MIME type for this attachment.
This will typically be image/jpeg to indicate the attachment is a JPEG image.
| DB_EDGEVIS_SDK bool EdgeVisDecoderSDK::CamsAttachment::IsJPEG | ( | ) | const |
Convenience method to determine if this attachment is a JPEG image.
| DB_EDGEVIS_SDK std::wstring EdgeVisDecoderSDK::CamsAttachment::GetContent | ( | ) | const |
Retrieve the content of this attachment as a Base64 encoded string.
In the case of a JPEG image, this can be provided to the JPEGFrame constructor to decode the string and determine the width and height.