No, compression only works when you don't need to represent every possibility, or can use less bytes for some inputs and more bytes for others.
https://en.wikipedia.org/wiki/Pigeonhole_principle#Uses_and_...
https://en.wikipedia.org/wiki/Pigeonhole_principle#Uses_and_...
There's more holes than pigeons here.
How do I compute the hash of every object, since by definition I can't address every byte?
And why would you want to read raw bytes from an object to hash it? What requires this in Java?