message: Added new REST endpoint for logo upload
diff: package org.c4sg.controller;
  +import org.apache.tomcat.util.codec.binary.Base64;
  +import org.c4sg.dto.OrganizationDto;
  +import org.c4sg.service.OrganizationService;
  +import org.springframework.beans.factory.annotation.Autowired;
  +import org.springframework.web.bind.annotation.*;
  +
  +import javax.servlet.http.HttpServletRequest;
  +import javax.validation.Valid;
  +import java.io.File;
  +import java.io.FileOutputStream;
  import java.util.Collections;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  -import javax.validation.Valid;
  -
  -import org.c4sg.dto.OrganizationDto;
  -import org.c4sg.entity.Organization;
  -import org.c4sg.service.OrganizationService;
  -import org.springframework.beans.factory.annotation.Autowired;
  -import org.springframework.web.bind.annotation.CrossOrigin;
  -import org.springframework.web.bind.annotation.PathVariable;
  -import org.springframework.web.bind.annotation.RequestBody;
  -import org.springframework.web.bind.annotation.RequestMapping;
  -import org.springframework.web.bind.annotation.RequestMethod;
  -import org.springframework.web.bind.annotation.RestController;
  -
  @CrossOrigin
  @RestController
  public class OrganizationController {
  + static int counter = 0;
  +
  @Autowired
  private OrganizationService organizationService;
  +
  + @RequestMapping(value = "/api/organization/{id}/uploadLogo", method = RequestMethod.POST)
  + public
  + @ResponseBody
  + String uploadImage2(@PathVariable int organizationId, @RequestBody String requestBody, HttpServletRequest request) {
  + try {
  + //This will decode the String which is encoded by using Base64 class
  + byte[] imageByte = Base64.decodeBase64(requestBody);
  + File f = new File(organizationId + "-logo.jpg");
  + //String directory= ServletContext.getRealPath("/")+"images/sample.jpg";
  + new FileOutputStream(f).write(imageByte);
  + return "success ";
  + } catch (Exception e) {
  + return "error = " + e;
  + }
  +
  + }
  +
  @CrossOrigin
  @RequestMapping(value = "/api/organization/all", produces = {"application/json"}, method = RequestMethod.GET)
  public List<OrganizationDto> getOrganizations() {
  