how to store an image to redis using java / spring
Redis is binary safe so, in the case of Jedis, you can use BinaryJedis to store binary data just as any other kind of value that you store in Redis.
And no, I don't think storing images in Redis, and thus in-memory, is a good strategy. That would have to be a very special use-case.