Not able to edit Binary Content Data using scripting

I have an SCA call in which we are sending a binary content dynamically. For that I am not able to edit the binary Content using scripting.