Package org.saiku.web.svg

Examples of org.saiku.web.svg.Converter.convert()


      if (StringUtils.isBlank(svg)) {
        throw new Exception("Missing 'svg' parameter");
      }
      final InputStream in = new ByteArrayInputStream(svg.getBytes("UTF-8"));
      final ByteArrayOutputStream out = new ByteArrayOutputStream();
      converter.convert(in, out, size);
      out.flush();
      byte[] doc = out.toByteArray();
      return Response.ok(doc).type(converter.getContentType()).header(
          "content-disposition",
          "attachment; filename = chart." + converter.getExtension()).header(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.