AnsweredAssumed Answered

binary content modification using JavaScript API

Question asked by sugai on Aug 1, 2007
Latest reply on Aug 1, 2007 by sugai
:)
Hello!

I saw document about "Modifying and Creating API for JavaScript" from Alfresco Wiki.

The document describe for "content" property,
"The content of the node can be modified by setting this property.",and
"However it is not recomend that nodes with binary content are manipulated in this way!".

Is there any way to modify binary content using JavaScript API ?

Please advice me!

I tryed example script following , this script did not work correctly.

        var workingCopy = doc1.checkout();
        workingCopy.content = doc2.content;
        doc1 = workingCopy.checkin();

Outcomes