code: public void setLength(long size) throws IOException, RepositoryException
     {
        if (!changed)
        {
           internalData = createEditableCopy(this.getInternalData());
        }
  
        ((EditableValueData)internalData).setLength(size);
        invalidateStream();
     }
docs: Truncates binary value to <code> size </code>