AttachmentData Property

This property contains the attachment data.


ANSI (Cross Platform)
int GetAttachmentData(int iAttachmentIndex, char* &lpAttachmentData, int &lenAttachmentData);
int SetAttachmentData(int iAttachmentIndex, const char* lpAttachmentData, int lenAttachmentData); Unicode (Windows) INT GetAttachmentData(INT iAttachmentIndex, LPSTR &lpAttachmentData, INT &lenAttachmentData);
INT SetAttachmentData(INT iAttachmentIndex, LPCSTR lpAttachmentData, INT lenAttachmentData);
- (NSString*)attachmentData:(int)attachmentIndex;
- (void)setAttachmentData:(int)attachmentIndex:(NSString*)newAttachmentData;

- (NSData*)attachmentDataB:(int)attachmentIndex; - (void)setAttachmentDataB:(int)attachmentIndex:(NSData*)newAttachmentData;

IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_AS2Sender_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_AS2Sender_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_AS2Sender_CheckIndex(void *lpObj, int propid, int arridx);

Default Value



This property contains the attachment data.

In a receiver, the class decodes the attachment to the AttachmentData property when AttachmentData's value is first queried. This property will contain the full decrypted text of the attachment.

The AttachmentIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AttachmentCount property.

This property is not available at design time.

Data Type

Binary String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8162]