comparison OrthancFramework/Sources/DicomParsing/DicomWebJsonVisitor.cpp @ 4660:4e81412ead0a

in DICOMweb JSON, BulkDataURI is forced for sequences and pixel data
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 May 2021 12:46:06 +0200
parents 9f7eef20bc7d
children b51c08bd5c38
comparison
equal deleted inserted replaced
4659:38f5fb0885c4 4660:4e81412ead0a
427 /** 427 /**
428 * The test on "size > 0" is new in Orthanc 1.9.3, and fixes 428 * The test on "size > 0" is new in Orthanc 1.9.3, and fixes
429 * issue #195 (No need for BulkDataURI when Data Element is 429 * issue #195 (No need for BulkDataURI when Data Element is
430 * empty): https://bugs.orthanc-server.com/show_bug.cgi?id=195 430 * empty): https://bugs.orthanc-server.com/show_bug.cgi?id=195
431 **/ 431 **/
432 if (size > 0) 432 if (size > 0 ||
433 tag == DICOM_TAG_PIXEL_DATA ||
434 vr == ValueRepresentation_Sequence /* new in Orthanc 1.9.4 */)
433 { 435 {
434 switch (mode) 436 switch (mode)
435 { 437 {
436 case BinaryMode_BulkDataUri: 438 case BinaryMode_BulkDataUri:
437 node[KEY_BULK_DATA_URI] = bulkDataUri; 439 node[KEY_BULK_DATA_URI] = bulkDataUri;