This is an automated email from the git hooks/post-receive script. New commit to branch feature/7648-export-recherche-projets in repository coselmar. See http://git.codelutin.com/coselmar.git commit 70d91eacdc82d7d4c9a169dd1abf675854dabb91 Author: Yannick Martel <martel@©odelutin.com> Date: Wed Dec 9 12:04:54 2015 +0100 #7774 utilisation de l'export en InputStream de nuiton-csv --- .../java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java | 6 ++++-- pom.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java b/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java index 75ef937..1a17887 100644 --- a/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java +++ b/coselmar-rest/src/main/java/fr/ifremer/coselmar/services/v1/QuestionsWebService.java @@ -834,8 +834,10 @@ public class QuestionsWebService extends CoselmarWebServiceSupport { QuestionExportModel exportModel = new QuestionExportModel(); String exportData; + + InputStream resultStream; try { - exportData = Export.exportToString(exportModel, questions); + resultStream = Export.exportToInputStream(exportModel, questions); } catch (Exception e) { if (log.isErrorEnabled()) { log.error("Error during export", e); @@ -843,7 +845,7 @@ public class QuestionsWebService extends CoselmarWebServiceSupport { throw new CoselmarTechnicalException("Unable to export datas"); } - return renderDownload(IOUtils.toInputStream(exportData), "export-projects", "text/csv"); + return renderDownload(resultStream, "export-projects", "text/csv"); } diff --git a/pom.xml b/pom.xml index 99aef73..ccca94e 100644 --- a/pom.xml +++ b/pom.xml @@ -129,7 +129,7 @@ <nuitonWebVersion>1.17</nuitonWebVersion> <nuitonUtilsVersion>3.0-rc-8</nuitonUtilsVersion> <nuitonConfigVersion>3.0-rc-2</nuitonConfigVersion> - <nuitonCsvVersion>3.0-alpha-3</nuitonCsvVersion> + <nuitonCsvVersion>3.0-SNAPSHOT</nuitonCsvVersion> <nuitonDecoratorVersion>3.0</nuitonDecoratorVersion> <nuitonValidatorVersion>3.0</nuitonValidatorVersion> <nuitonConvertorVersion>1.0</nuitonConvertorVersion> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.