[opencms-dev] How to read a file size

Olli Aro olli_aro at yahoo.co.uk
Fri Apr 2 11:19:01 CEST 2004


Good stuff Andras - this works just perfect:) 

Olli

-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Andras Balogh
Sent: 02 April 2004 09:11
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] How to read a file size

Hello,

What about  cmsobject.readFileHeader(file).getLength()
??

Best wishes,
Andras.

Olli Aro wrote:

>Hi all,
>
>Thanks for your responses. Com.opencms.file.CmsFile.getLength() still reads
>the file in memory, so is slow with large files. 
>
>Achim, 
>
>Can you remember what was the property called? Was it a JSP property or a
>resource property?
>
>Regards,
>
>Olli  
>
>  
>


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.648 / Virus Database: 415 - Release Date: 31/03/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.648 / Virus Database: 415 - Release Date: 31/03/2004
 




More information about the opencms-dev mailing list