File image1 = new ClassPathResource("image1.jpg").getFile();
File image2 = new ClassPathResource("image2.gif").getFile();
FileInputStream fis = new FileInputStream(image1);
getResourceService().upload(fis,
new Resource("image1.jpg", "jpg", "La image1"));
fis.close();
fis = new FileInputStream(image2);
getResourceService().upload(fis,
new Resource("image2.gif", "gif", "La image2"));
fis.close();
}
catch (FileNotFoundException e)
{
throw new SystemeException(e);