comparison OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp @ 4153:a4664f169cd7

"/peers/{id}/store": New option "Compress" to compress DICOM data using gzip
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Aug 2020 12:13:27 +0200
parents 05b8fd21089c
children d962a2996637
comparison
equal deleted inserted replaced
4152:36257d6f348f 4153:a4664f169cd7
1140 static const char* TRANSCODE = "Transcode"; 1140 static const char* TRANSCODE = "Transcode";
1141 if (request.type() == Json::objectValue && 1141 if (request.type() == Json::objectValue &&
1142 request.isMember(TRANSCODE)) 1142 request.isMember(TRANSCODE))
1143 { 1143 {
1144 job->SetTranscode(SerializationToolbox::ReadString(request, TRANSCODE)); 1144 job->SetTranscode(SerializationToolbox::ReadString(request, TRANSCODE));
1145 }
1146
1147 static const char* COMPRESS = "Compress";
1148 if (request.type() == Json::objectValue &&
1149 request.isMember(COMPRESS))
1150 {
1151 job->SetCompress(SerializationToolbox::ReadBoolean(request, COMPRESS));
1145 } 1152 }
1146 1153
1147 { 1154 {
1148 OrthancConfiguration::ReaderLock lock; 1155 OrthancConfiguration::ReaderLock lock;
1149 1156