title: how to store an image to redis using java / spring
body: <p>I'm using redis and spring framework on my image upload server. I need to store the images to redis. I have found the following question but it was for python. <br>
  <a href="https://stackoverflow.com/questions/15225053/how-to-store-a-image-into-redis-using-python-pil">how to store an image into redis using python / PIL</a></p>
  
  <p>I'm not sure if it's the best way but I would like to know how to do it in java (preferably using spring framework). I'm using spring-data-redis which uses jedis.</p>
  
  <p>I would like to know if it is a good strategy to store images in redis.</p>