[opencms-dev] How to read a file size
Olli Aro
olli_aro at yahoo.co.uk
Thu Apr 1 18:43:00 CEST 2004
Hi all,
Does anyone know a system friendly way to get the file size information from
OpenCMS? I know I can get it with
cms.readFile(fileuri)).getContents().length, however this gets a little slow
with large files since it loads the whole file in memory…
Thanks,
Olli
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.638 / Virus Database: 409 - Release Date: 21/03/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040401/42c60e1f/attachment.htm>
More information about the opencms-dev
mailing list