Upload photo with spring servlet rest and json.