# HG changeset patch # User Sebastien Jodogne # Date 1559807218 -7200 # Node ID eb57b7cd5f2108375fc6f2895eeacf558c77c98e # Parent 18cd4951fccc8c3e13425a4e413595adac4f0860 fix in DicomWebJsonVisitor diff -r 18cd4951fccc -r eb57b7cd5f21 Core/DicomParsing/DicomWebJsonVisitor.cpp --- a/Core/DicomParsing/DicomWebJsonVisitor.cpp Thu Jun 06 09:04:26 2019 +0200 +++ b/Core/DicomParsing/DicomWebJsonVisitor.cpp Thu Jun 06 09:46:58 2019 +0200 @@ -551,6 +551,15 @@ node[KEY_VALUE] = Json::arrayValue; for (size_t i = 0; i < tokens.size(); i++) { + /** + * The following call to "StripSpaces()" fixes the issue + * reported by Rana Asim Wajid on 2019-06-05 ("Error + * Exception while invoking plugin service 32: Bad file + * format"): + * https://groups.google.com/d/msg/orthanc-users/T32FovWPcCE/-hKFbfRJBgAJ + **/ + tokens[i] = Orthanc::Toolbox::StripSpaces(tokens[i]); + try { switch (vr)