comparison OrthancServer/ServerContext.cpp @ 1772:53e045b5a8ec

MIME content type can be associated to custom attachments (cf. "UserContentType")
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Nov 2015 14:36:27 +0100
parents 318c2e83c2bd
children 776573e592da
comparison
equal deleted inserted replaced
1771:8790488ae98b 1772:53e045b5a8ec
316 { 316 {
317 throw OrthancException(ErrorCode_UnknownResource); 317 throw OrthancException(ErrorCode_UnknownResource);
318 } 318 }
319 319
320 StorageAccessor accessor(area_); 320 StorageAccessor accessor(area_);
321 accessor.AnswerFile(output, attachment); 321 accessor.AnswerFile(output, attachment, GetFileContentMime(content));
322 } 322 }
323 323
324 324
325 void ServerContext::ChangeAttachmentCompression(const std::string& resourceId, 325 void ServerContext::ChangeAttachmentCompression(const std::string& resourceId,
326 FileContentType attachmentType, 326 FileContentType attachmentType,