FileData Property
The contents of the file being added to the archive.
Syntax
ANSI (Cross Platform) int GetFileData(char* &lpFileData, int &lenFileData);
int SetFileData(const char* lpFileData, int lenFileData); Unicode (Windows) INT GetFileData(LPSTR &lpFileData, INT &lenFileData);
INT SetFileData(LPCSTR lpFileData, INT lenFileData);
@property (nonatomic,readwrite,assign,getter=fileData,setter=setFileData:) NSData* fileData; - (NSData*)fileData; - (void)setFileData:(NSData*)newFileData;
#define PID_ARCHIVEWRITER_FILEDATA 12 SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_ArchiveWriter_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_ArchiveWriter_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Remarks
Assign this property with a byte array containing the contents of the file being added,if you set the corresponding entry's DataSource to fdsBuffer.
Use FileStream property, with DataSource set to fdsStream, to provide the data in a stream instead. Alternatively, use fdsFile data source to supply the file data in a disk file.
This property is not available at design time.
Data Type
Byte Array