# HG changeset patch # User Sebastien Jodogne # Date 1618592076 -7200 # Node ID 38face2a84a45ad3767129a5c35a7a9be73f8bd4 # Parent 9fa56c042d927692c3c5989990df07a151ad8681 metadata are utf-8 strings diff -r 9fa56c042d92 -r 38face2a84a4 Sphinx/source/faq/features.rst --- a/Sphinx/source/faq/features.rst Fri Apr 16 18:50:33 2021 +0200 +++ b/Sphinx/source/faq/features.rst Fri Apr 16 18:54:36 2021 +0200 @@ -97,10 +97,15 @@ mechanism `. However, metadata is stored directly inside the database, whereas attachments are stored as separate files on the filesystem (the database only stores a reference to the -attachments). Choosing between metadata and attachments is a matter of -trade-off: Metadata must be kept small (as a rule of thumb, under 1KB) -and used if fast access is needed, whereas attachments can be used to -store arbitrarily large piece of data. +attachments). Choosing between metadata and attachments is most often +a matter of trade-off: Metadata must be kept small (as a rule of +thumb, under 1KB) and used if fast access is needed, whereas +attachments can be used to store arbitrarily large piece of data. + +However, pay attention to the fact that metadata must be UTF-8 strings +terminated by the ``\0`` character. If you need to store arbitrary +binary objects, use an attachment or use `Base64 encoding +`__. Also note that metadata and attachments are only available for resources stored inside Orthanc. Once one DICOM instance leaves the