Returns a number or a number list containing the length of each attachment to the current document. The number(s) returned are only approximations; the actual size(s) of the attachment(s) may be slightly different.
@AttachmentLengths( excludeMIMEBody )
excludeMIMEBody
Boolean. Optional.
sizeInBytes
Number or number list.
The attachment size is computed based on uncompressed file size (that is, the number of bytes the attachment would use if you extracted it); the actual disk storage space required for the file may be somewhat smaller.
@AttachmentLengths returns an empty list if there are no attachments. If there is one attachment of length 0, @AttachmentLengths returns 0.
FileSize property in LotusScript NotesEmbeddedObject class
FileSize property in Java EmbeddedObject class
See examples