There are two ways to store non-XML data in BaseX:
* '''Storing them Store as raw files''':<br/> If application/octet-stream is chosen as content-type the data is added as a raw.* '''Convert raw data to XML''':<br/> 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 <code>400</code> (BAD REQUEST) exception.