Editing jcr:data/binary/rendition in AEM


Sharing a code snippet to update a Binary file stored in AEM. Here, we are updating a binary file stored as jcr:data in the original rendition. https://gist.github.com/aanchalsikka/9f6ab7f60082d4af1299e1772f67069b