Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 1550:2c7d5eb588e6
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Aug 2015 15:57:44 +0200 |
parents | e5e975e9b738 |
children | 0c29ebe80ac9 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Mon Aug 17 10:47:04 2015 +0200 +++ b/OrthancServer/ServerContext.cpp Mon Aug 17 15:57:44 2015 +0200 @@ -345,9 +345,18 @@ { throw OrthancException(ErrorCode_InternalError); } - - StorageAccessor accessor(area_); - accessor.Read(result, attachment); + + if (uncompressIfNeeded) + { + StorageAccessor accessor(area_); + accessor.Read(result, attachment); + } + else + { + // Do not interpret the content of the storage area, return the + // raw data + area_.Read(result, attachment.GetUuid(), content); + } }