There are two ways to store non-XML data in BaseX:
* <b>'''Storing them as raw files.''':<br/b> If application/octet-stream is chosen as content-type the data is added as a raw.* <b>'''Convert raw data to XML.''':<br/b> Raw data can be explicitly converted to XML by specifying the content-type.
Trying to add raw data without specifying the content type will lead to a 400 (Bad Request) exception.