Compressing Images before Commit

Hi there, I'm looking to compress images before they are uploaded to the server to save space. However, I'm unable to run a Java action to compress an image before commit as the file doesn't exist before commit: Anyone know how to compress an image before committing the object?   Thanks, Liam
1 answers

Hi Liam,

I wanted to know why do you need committed object, i have used this on uncommitted image object passed as a parameter , I have attached image below you can see the return value is true and it did get compressed.


I am using mxtechies module for this java action

Let me know if you need further help

Good luck!