Save Edited Image

Hi, I'm developing a custom widget which supports functions like rotation, cropping, etc... I am able to render the original uploaded image and apply photo editing functions I implemented. However, I'm not quite sure how to have it saved when I click on "Save" button, for instance. Everything else seems to be saved, but the edited image. Any idea? Thanks.
1 answers

To save an image you'd have to call the Core.storeImageDocumentContent method from a Java action with the image stream you want to save. I don't know enough about widgets/javascript to know how to achieve this from your client's browser though.