[quote=“Sanderd17”]But I guess it would be a better option to not store raw PDF documents in a database at all. Store them in a structured way on the HDD, and only keep a reference to it in your database (like the file path).[/quote]Storing true binary data in modern databases is perfectly fine as long as you actually use a BLOB or BINARY column type. And properly use ‘?’ substitution to push the binary content to the database.