[opencms-dev] Create image...

LuSoR sorrentinogino at libero.it
Fri Dec 16 12:26:20 CET 2005


i want to create an image whit the follow code: 

cms.createResource("/system/"+f.getName,CmsResourceTypeImage.getStaticTypeId
(),content,Collections.EMPTY_LIST); 

cms is a CmsObject object 
f is a File object 
content is a content of the file 


when the istruction is invoked... his result is null!!! why??? 

can you help me?




More information about the opencms-dev mailing list