IAttachments

What it does

Applies for associating binary data or files with workspace items. Attachments are passed when sending batch to FlexiCapture Server. When sending batch to folder or FTP folder, attachments are placed to the folder storing the batch and corresponding entries are added to XML description file.

Methods
Definition Description
Has (name: string): bool Checks whether the attachments array contains an attachment with the specified name
AddNew (name: string) : IAttachmentByteArray Adds a new attachment with the specified name
AddFromFile (name: string, path: string) Adds a new attachment with the specified from the specified path
SaveToFile (name: string, path: string) Saves the attachment with a specified name to a specified path
Delete (name: string) Deletes the attachment file with the specified name
DeleteAll ( ) Deletes all attachments
Properties
Name Type Access Description
Names VARIANT Read-only The array of attachments names
IsEmpty bool Read-only Specifies whether the array of user attachments is empty
ByteArray (name: string) IAttachmentByteArray Read-only Retrieves binary data of the attachment by its name

26.03.2024 13:49:49

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.