As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String contentString = ContentUtils.putContent(new File(rutaFichero)); NamedValue[] contentProps = new NamedValue[2]; contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, nombreFichero); contentProps[1] = Utils.createNamedValue(Constants.PROP_CONTENT, contentString); CMLCreate create = new CMLCreate(String.valueOf("file name"), rutaDestino, null, null, null, Constants.TYPE_CONTENT, contentProps); CML cml = new CML(); cml.setCreate(new CMLCreate[] { create }); UpdateResult[] result; Reference content = null; result = WebServiceFactory.getRepositoryService().update(cml);