Programatically working with the DAM Hi I have 2 questions around programatically. 1) I need to save files to the DAM. I can save jpg files using the code public String ToDam(InputStream is, String fileName, javax.jcr.Session session, String damLocation, String fileType,String addOrRemove) { try { javax.jcr.Node node = session.getNode(damLocation); javax.jcr.ValueFactory valueFactory = session.getValueFactory(); javax.jcr.Binary contentValue = valueFactory.createBinary(is); javax.jcr.Node fileNode = node.addNode(fileName, "nt:file"); fileNode.addMixin("mix:referenceable"); javax.jcr.Node resNode = fileNode.addNode("jcr:content", "nt:resource"); if (addOrRemove.equals("add")) { resNode.setProperty("jcr:mimeType","image/jpeg"); resNode.setProperty("jcr:data", contentValue); } else { //TODO } Calendar lastModified = Calendar.getInstance();