comparison Core/Enumerations.h @ 2905:ae20fccdd867

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents 61a5667f37d9
children 9d277f8ad698
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
45 #endif 45 #endif
46 46
47 47
48 namespace Orthanc 48 namespace Orthanc
49 { 49 {
50 static const char* const URI_SCHEME_PREFIX_BINARY = "data:application/octet-stream;base64,";
51
52 static const char* const MIME_BINARY = "application/octet-stream";
53 static const char* const MIME_DICOM = "application/dicom";
54 static const char* const MIME_JPEG = "image/jpeg";
55 static const char* const MIME_JPEG2000 = "image/jp2";
56 static const char* const MIME_JSON = "application/json";
57 static const char* const MIME_PDF = "application/pdf";
58 static const char* const MIME_PNG = "image/png";
59 static const char* const MIME_XML = "application/xml";
60 static const char* const MIME_PLAIN_TEXT = "text/plain";
61
62 /**
63 * "No Internet Media Type (aka MIME type, content type) for PBM has
64 * been registered with IANA, but the unofficial value
65 * image/x-portable-arbitrarymap is assigned by this specification,
66 * to be consistent with conventional values for the older Netpbm
67 * formats." http://netpbm.sourceforge.net/doc/pam.html
68 **/
69 static const char* const MIME_PAM = "image/x-portable-arbitrarymap";
70
71
50 enum Endianness 72 enum Endianness
51 { 73 {
52 Endianness_Unknown, 74 Endianness_Unknown,
53 Endianness_Big, 75 Endianness_Big,
54 Endianness_Little 76 Endianness_Little