Mercurial > hg > orthanc-dicomweb
changeset 256:ce89c852980a
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 26 Feb 2019 18:30:10 +0100 |
parents | f8258fa2cedc |
children | cc1baf85969a |
files | Plugin/WadoRsRetrieveFrames.cpp |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/WadoRsRetrieveFrames.cpp Tue Feb 26 18:15:32 2019 +0100 +++ b/Plugin/WadoRsRetrieveFrames.cpp Tue Feb 26 18:30:10 2019 +0100 @@ -472,14 +472,14 @@ ParseFrameList(frames, request); Json::Value header; - std::string uri; + std::string publicId; OrthancPlugins::MemoryBuffer content; - if (LocateInstance(output, uri, request) && - content.RestApiGet(uri + "/file", false) && - OrthancPlugins::RestApiGet(header, uri + "/header?simplify", false)) + if (LocateInstance(output, publicId, request) && + content.RestApiGet("/instances/" + publicId + "/file", false) && + OrthancPlugins::RestApiGet(header, "/instances/" + publicId + "/header?simplify", false)) { { - std::string s = "DICOMweb RetrieveFrames on " + uri + ", frames: "; + std::string s = "DICOMweb RetrieveFrames on " + publicId + ", frames: "; for (std::list<unsigned int>::const_iterator frame = frames.begin(); frame != frames.end(); ++frame) { @@ -522,7 +522,7 @@ // Need to convert the transfer syntax { - OrthancPlugins::LogInfo("DICOMweb RetrieveFrames: Transcoding " + uri + + OrthancPlugins::LogInfo("DICOMweb RetrieveFrames: Transcoding instance " + publicId + " from transfer syntax " + std::string(sourceSyntax.GetString()) + " to " + std::string(targetSyntax.GetString())); }