spartacus
22nd February 2007, 13:33
Hi all,
we use "xmlWrittePretty()" to write our data as xml-structure to a file (of course). We use "sendmail", to send that file via email to some users.
Due to the fact, that email-size is limited on our system, we have to check the filesize.
Is there any quick an easy way to determine the size of the resulting file, before we use "xmlWrittePretty()"?
From my point of view, the only way to get the file-size is:
1. create the xml-file from Baan
2. send a "shell()"-comand with "ls -l" or "du -k", and write the output of the unix-command to a file.
3.read the above created file.
It will be great if someone has a better idea ;-)
we use "xmlWrittePretty()" to write our data as xml-structure to a file (of course). We use "sendmail", to send that file via email to some users.
Due to the fact, that email-size is limited on our system, we have to check the filesize.
Is there any quick an easy way to determine the size of the resulting file, before we use "xmlWrittePretty()"?
From my point of view, the only way to get the file-size is:
1. create the xml-file from Baan
2. send a "shell()"-comand with "ls -l" or "du -k", and write the output of the unix-command to a file.
3.read the above created file.
It will be great if someone has a better idea ;-)