Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.cpp @ 1004:a226e0959d8b lua-scripting
DicomInstanceToStore
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 08 Jul 2014 14:06:05 +0200 |
parents | 2f76b92addd4 |
children | 564e39d6df13 |
comparison
equal
deleted
inserted
replaced
1003:1d35281d967c | 1004:a226e0959d8b |
---|---|
871 | 871 |
872 | 872 |
873 void ParsedDicomFile::Answer(RestApiOutput& output) | 873 void ParsedDicomFile::Answer(RestApiOutput& output) |
874 { | 874 { |
875 std::string serialized; | 875 std::string serialized; |
876 if (FromDcmtkBridge::SaveToMemoryBuffer(serialized, pimpl_->file_->getDataset())) | 876 if (FromDcmtkBridge::SaveToMemoryBuffer(serialized, *pimpl_->file_->getDataset())) |
877 { | 877 { |
878 output.AnswerBuffer(serialized, CONTENT_TYPE_OCTET_STREAM); | 878 output.AnswerBuffer(serialized, CONTENT_TYPE_OCTET_STREAM); |
879 } | 879 } |
880 } | 880 } |
881 | 881 |
954 } | 954 } |
955 | 955 |
956 | 956 |
957 void ParsedDicomFile::SaveToMemoryBuffer(std::string& buffer) | 957 void ParsedDicomFile::SaveToMemoryBuffer(std::string& buffer) |
958 { | 958 { |
959 FromDcmtkBridge::SaveToMemoryBuffer(buffer, pimpl_->file_->getDataset()); | 959 FromDcmtkBridge::SaveToMemoryBuffer(buffer, *pimpl_->file_->getDataset()); |
960 } | 960 } |
961 | 961 |
962 | 962 |
963 void ParsedDicomFile::SaveToFile(const std::string& path) | 963 void ParsedDicomFile::SaveToFile(const std::string& path) |
964 { | 964 { |