Mercurial > hg > orthanc
comparison Resources/Samples/Tools/RecoverCompressedFile.cpp @ 2034:07f2ba3677df
Fix of Debian bug #823139 ("orthanc: Please provide RecoverCompressedFile.cpp")
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 Jun 2016 12:58:25 +0200 |
parents | b1291df2f780 |
children | 9dd1ee869b88 |
comparison
equal
deleted
inserted
replaced
2033:bfdf24883ff3 | 2034:07f2ba3677df |
---|---|
45 fprintf(stderr, "Decompressing the content of the file...\n"); | 45 fprintf(stderr, "Decompressing the content of the file...\n"); |
46 fflush(stderr); | 46 fflush(stderr); |
47 | 47 |
48 Orthanc::ZlibCompressor compressor; | 48 Orthanc::ZlibCompressor compressor; |
49 std::string uncompressed; | 49 std::string uncompressed; |
50 compressor.Uncompress(uncompressed, content); | 50 compressor.Uncompress(uncompressed, |
51 content.empty() ? NULL : content.c_str(), | |
52 content.size()); | |
51 | 53 |
52 fprintf(stderr, "Writing the uncompressed data...\n"); | 54 fprintf(stderr, "Writing the uncompressed data...\n"); |
53 fflush(stderr); | 55 fflush(stderr); |
54 | 56 |
55 if (argc == 3) | 57 if (argc == 3) |