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 |
12.04.2024 18:16:02