IUserAttachment

What it does

The interface is used for working with the contents of user attachment. The object represents an array of bytes. Bytes can be accessed as objects in the collection. The byte value at any position can be changed.

Methods

Definition Description
FromFile( fileName : string) Replaces the attachment contents with a file from the specified path.
SetSize( newSize : int) : bool Changes the size of the file. Files whose size is smaller than the specified value are increased, files with larger size are cut.
ToFile( fileName : string) Saves the file to the specified path on a hard disk.
UploadAttachment( ) Saves changes made to the attachment.

Properties

Name Type Access Description
AsString string Read/write Represents the file as one Unicode string. Files can be both written and read as Unicode strings.
Name string Read-only The name of the file

25.05.2023 7:55:02

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.