[opencms-dev] CmsFile.getContents()
    Anatol 
    opencms at recordcaster.de
       
    Thu Jan  5 21:26:15 CET 2006
    
    
  
Hi!
Some days ago remembering I have the same problem. My Solution was to 
get the resource by the cmsobject and used the cmsfile.update-methode. 
if you use the cmsfile constructor, a new an empty resource was created. 
So the length MUST be 0 ;-)
hope it may help you.
Greetings
Anatol
Kodumuri, Madhavi schrieb:
> Hi,
>
> I initiated CmsObject and got the list of the files under a specific 
> folder.
>
> Now I am iterating through each file and trying to get contents of the 
> files using,
>
> byte[] fileContents = file.getContents();
>
> But I am getting 0 for the fileContents.length.
>
> Is there any way I can get the contents of the file,
>
> Thanks,
>
> *//**/Madhavi Kodumuri/*
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev
>
    
    
More information about the opencms-dev
mailing list