Skip to main content

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

DefinitionDescription
FromFile( fileName : string)Replaces the attachment contents with a file from the specified path.
SetSize( newSize : int) : boolChanges 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

NameTypeAccessDescription
AsStringstringRead/writeRepresents the file as one Unicode string. Files can be both written and read as Unicode strings.
NamestringRead-onlyThe name of the file