AW: [opencms-dev] How to read a file size

Sebastian Jekutsch jekutsch at pcpool.mi.fu-berlin.de
Thu Apr 1 18:51:01 CEST 2004


What about cms.readFile(fileuri)).getLength() ?
 
Sebastian

	-----Ursprüngliche Nachricht-----
	Von: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org] Im Auftrag von Olli Aro
	Gesendet: Donnerstag, 1. April 2004 18:43
	An: opencms-dev at opencms.org
	Betreff: [opencms-dev] How to read a file size
	
	

	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/be2b4dbb/attachment.htm>


More information about the opencms-dev mailing list