[opencms-dev] Content access in OpenCMS
CALI-GARSIA Bruno
bruno.cali-garsia-renexter at renault.com
Thu Mar 27 18:54:16 CET 2003
Hello,
try this:
CmsFile file = m_cms.readFile(filepath);
byte[] bytecontent=file.getContents();
Regards,
Bruno
-----Message d'origine-----
De : owner-opencms-dev at www.opencms.org
[mailto:owner-opencms-dev at www.opencms.org]De la part de
ambiesense at gmx.de
Envoyé : jeudi 27 mars 2003 18:40
À : opencms-dev at www.opencms.org
Objet : [opencms-dev] Content access in OpenCMS
Hi,
how can I easily access a certain content (i.e. a XML file) in OpenCMS's
VFS, when I have the position (i.e. /Test/myExample.xml).
Is CmsFile the right class to do that? Is seems very complicated to build
such an Object. Is there an easier way for which I only need the position in
the VFS - maybe a factory ?
cheers
Ralf
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
More information about the opencms-dev
mailing list