private String generateMapHtml(Map map,User user) throws IOException {
  ByteArrayOutputStream baos=new ByteArrayOutputStream();
  BufferedImage image=mapGenerationService.generateMapImageForUser(map,new Date(),null,578,440,user);
  ImageIO.write(image,"PNG",baos);
  return uploadImage(map.getUid(),baos.toByteArray());
}

private String generateMapHtml ( Map map , User user ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; BufferedImage image = mapGenerationService . generateMapImageForUser ( map , new Date ( ) , null , 578 , 440 , user ) ; ImageIO . write ( image , "PNG" , baos ) ; return uploadImage ( map . getUid ( ) , baos . toByteArray ( ) ) ; }
returns an absolute url to an image representing the map input
