You can use DetectMimeType processor and then follow it with CompressContent in decompress mode using the mime type attribute.
It will decompress if needed and move on otherwise. Dont think you'll need a RouteOnAttribute in between. Thanks On Wed, Sep 20, 2017 at 2:34 PM, Andy Christianson <[email protected]> wrote: > On Wed, 2017-09-20 at 11:32 -0700, Laurens Vets wrote: >> Is there a simple way to see whether a file is compressed or not? >> >> In my current flow, if an object is not compressed it should bypass the >> CompressContent processor, otherwise it needs to be decompressed. >> > > Not sure if there is a better way, but one thing you could do is try to > decompress it, and have both the failure and success relationships of > that go to the next processor in your flow. > > -Andy I.C.
