Mercurial > hg > orthanc
comparison Core/Images/IImageWriter.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | 764c9157301b |
children | fd5875662670 |
comparison
equal
deleted
inserted
replaced
2139:764c9157301b | 2140:aa4b8895cd23 |
---|---|
45 const void* buffer) | 45 const void* buffer) |
46 { | 46 { |
47 #if ORTHANC_SANDBOXED == 0 | 47 #if ORTHANC_SANDBOXED == 0 |
48 std::string compressed; | 48 std::string compressed; |
49 WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); | 49 WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); |
50 Toolbox::WriteFile(compressed, path); | 50 SystemToolbox::WriteFile(compressed, path); |
51 #else | 51 #else |
52 throw OrthancException(ErrorCode_CannotWriteFile); // Unavailable in sandboxed environments | 52 throw OrthancException(ErrorCode_CannotWriteFile); // Unavailable in sandboxed environments |
53 #endif | 53 #endif |
54 } | 54 } |
55 } | 55 } |