Returns the size of the content of this bytes parts. Returns -1 if the size ca not be determined. Note that the size can not be an
exact measure of the content size and can or can not count for any transfer encoding of the content. The size appropied to show in the user interface
giving an approximated idea of the size of this part.
1 mail.mimePart.getSize
<mail.mimePart.getSize>
<Part /> +
</mail.mimePart.getSize>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EPart | Part |
Returns | |
---|---|
Type | Description |
number | Content size in bytes. |
Example
Obtaint the file size.
Copy
<xsql-script name=''> <body> <select prefix='m_'> <columns>mail_message</columns> <from table='wic_user_maildata ' /> <where> uid = 1949240 </where> </select> <set name='m_mimeMessage'> <mail.mimeMessage> <m_mail_message /> </mail.mimeMessage> </set> <set name='m_mail_parts_array'> <mail.mimePart.getParts><m_mimeMessage /></mail.mimePart.getParts> </set> <iterator name='part' index='idx'> <in><m_mail_parts_array /></in> <do> <println> <mail.mimePart.getSize><part /></mail.mimePart.getSize> </println> </do> </iterator> </body> </xsql-script>