AnsweredAssumed Answered

update the contents with another contents

Question asked by frama on Jun 5, 2008
Latest reply on Jun 6, 2008 by jos.snellings
Hello, let me know if you can do this through Web Services.
I would like to update the contents of a file in Alfresco, with the contents
of another file also different in Alfresco, but I do not want to transfer the
contents through my application.

It would be something like:

   Reference theReference = getReferencia(uuid, null);
   Predicate predicate = new Predicate(new Reference[] { theReference }, spacesStore, null);
   Content [] content = (predicate, Constants.PROP_CONTENT);
   contentService.write(referenceNode, Constants.PROP_CONTENT, content[0]);